Giter VIP home page Giter VIP logo

gulp-unretina's People

Contributors

ramonfritsch avatar

Watchers

 avatar

gulp-unretina's Issues

PluginError is not defined

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)

Low image quality for jpg

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/'));
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.