Skip to content

Commit

Permalink
use correct command, and ignore unneeded param
Browse files Browse the repository at this point in the history
  • Loading branch information
mpd committed Sep 25, 2013
1 parent a45155c commit 08400c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/image-magick.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ImageMagick.prototype.watermark = function(params, callback) {
// if(!params.hasOwnProperty('size'))
// throw new Error('Resize needs size-param with format <width>x<height>!')

this._convert(ImageMagick.Templates.get('watermarkCmd', {}), params, callback)
this._composite(ImageMagick.Templates.get('watermarkCmd', {}), params, callback)
}

// private
Expand Down Expand Up @@ -287,7 +287,7 @@ ImageMagick.prototype._convert = function(_command, params, callback) {
ImageMagick.prototype._composite = function(_command, params, callback) {
var source = params.url
, self = this
, size = params.size || params.crop.split('+')[0]
// , size = params.size || params.crop.split('+')[0]
, pathHashString
, srcTmpPath
, destTmpPath
Expand Down

0 comments on commit 08400c9

Please sign in to comment.