|
|
|
@ -57,7 +57,7 @@ module.exports = function (proto) { |
|
|
|
|
* img.append(img).append(true) gm convert src img +append |
|
|
|
|
* img.append(img).append(true) gm convert src img +append |
|
|
|
|
* img.append(img).background('#222) gm convert src img -background #222 +append |
|
|
|
|
* img.append([img1,img2...],true)
|
|
|
|
|
* img.append([img1,img2...],true) |
|
|
|
|
|
|
|
|
|
* @param {String} or {Array} [img] |
|
|
|
|
* @param {Boolean} [ltr] |
|
|
|
@ -710,7 +710,7 @@ module.exports = function (proto) { |
|
|
|
|
var geometry, |
|
|
|
|
wIsValid = Boolean(w || w === 0), |
|
|
|
|
hIsValid = Boolean(h || h === 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (wIsValid && hIsValid) { |
|
|
|
|
geometry = w + "x" + h + options |
|
|
|
|
} else if (wIsValid) { |
|
|
|
@ -726,6 +726,11 @@ module.exports = function (proto) { |
|
|
|
|
return this.out("-resize", geometry); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
proto.resizeExact = function resize (w, h) { |
|
|
|
|
var options = "!"; |
|
|
|
|
return proto.resize.apply(this, [w, h, options]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// http://www.graphicsmagick.org/GraphicsMagick.html#details-scale
|
|
|
|
|
proto.scale = function scale (w, h, options) { |
|
|
|
|
options = options || ""; |
|
|
|
|