Skip to content

Commit

Permalink
add filter and density
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbeck committed Mar 7, 2012
1 parent 3a10840 commit fc52cec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ module.exports = function (proto) {
return this.out("-scale", w +"x"+ h);
}

// http://www.graphicsmagick.org/GraphicsMagick.html#details-filter
proto.filter = function filter (val) {
return this.out("-filter", val);
}

// http://www.graphicsmagick.org/GraphicsMagick.html#details-density
proto.density = function density (w, h) {
return this.out("-density", w +"x"+ h);
}

// http://www.graphicsmagick.org/GraphicsMagick.html#details-profile
proto.noProfile = function noProfile () {
this.out('+profile', '"*"');
Expand Down

0 comments on commit fc52cec

Please sign in to comment.