ramonfritsch / gulp-unretina Goto Github PK
View Code? Open in Web Editor NEWScales @2x images down to standard resolution using GraphicsMagick.
License: MIT License
Scales @2x images down to standard resolution using GraphicsMagick.
License: MIT License
I haven't had a problem in the past using gulp-unretina until just today, I randomly started getting this bug.
/gulp-unretina/index.js:29
return done(new PluginError(PLUGIN_NAME, err));
^
ReferenceError: PluginError is not defined
at gm. (/Users/qhenkart/workspace/launchpad/marketing/assets/node_modules/gulp-unretina/index.js:29:21)
at gm.emit (events.js:118:17)
at gm. (/Users/qhenkart/workspace/launchpad/marketing/assets/node_modules/gulp-unretina/node_modules/gm/lib/getters.js:70:16)
at Socket.cb (/Users/qhenkart/workspace/launchpad/marketing/assets/node_modules/gulp-unretina/node_modules/gm/lib/command.js:318:16)
at Socket.g (events.js:199:16)
at Socket.emit (events.js:107:17)
at onwriteError (_stream_writable.js:317:10)
at onwrite (_stream_writable.js:335:5)
at WritableState.onwrite (_stream_writable.js:105:5)
at fireErrorCallbacks (net.js:456:13)
at Socket._destroy (net.js:495:3)
at WriteWrap.afterWrite (net.js:777:10)
When I run your (very useful) gulp extension, the quality for resized jpg image is pretty low. For similar png images, everything works fine.
Tried both without options and with quality: 1.
gulp.task('resize', function () {
gulp.src('public/images/*@2x.{jpg,png}')
.pipe(unretina({
quality: 1 // should be default, added just to be sure
}))
.pipe(gulp.dest('public/images/'));
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.