fixes density on ImageMagick

master
syzer 10 years ago
parent 2fb65bac7c
commit a829c40973
  1. 5
      lib/args.js

@ -729,6 +729,11 @@ module.exports = function (proto) {
// http://www.graphicsmagick.org/GraphicsMagick.html#details-density
proto.density = function density (w, h) {
if (w && !h && this._options.imageMagick) {
// GraphicsMagick requires <width>x<height>y, ImageMagick may take dpi<resolution>
// recommended 300dpi for higher quality
return this.in("-density", w);
}
return this.in("-density", w +"x"+ h);
}

Loading…
Cancel
Save