make new image using size object

master
Mihai Chiorean 10 years ago
parent 3a5f5b7603
commit 1896d98896
  1. 11
      index.js

@ -48,6 +48,17 @@ function gm (source, height, color) {
this.in("-size", width + "x" + height);
if (color) {
this.in("xc:"+ color);
}
} else if(source.width && source.height) {
// new images
width = source.width;
height = source.height;
source = "";
this.in("-size", width + "x" + height);
if (color) {
this.in("xc:"+ color);
}

Loading…
Cancel
Save