Comparing version 0.4.1 to 0.4.2
@@ -6,5 +6,5 @@ | ||
, dir = __dirname + '/imgs' | ||
gm(dir + '/original.jpg') | ||
.resize(18, 10) | ||
.resize(58, 50, '%') | ||
.write(dir + '/resize.jpg', function(err){ | ||
@@ -14,2 +14,2 @@ if (err) return console.dir(arguments) | ||
} | ||
) | ||
) |
## v0.4.2 - 05/10/2011 | ||
* added; resize options support | ||
## v0.4.1 - 04/28/2011 | ||
@@ -3,0 +7,0 @@ |
@@ -62,3 +62,3 @@ | ||
module.exports = gm; | ||
module.exports.version = "0.4.1"; | ||
module.exports.version = "0.4.2"; | ||
@@ -11,4 +11,5 @@ | ||
// http://www.graphicsmagick.org/GraphicsMagick.html#details-resize | ||
proto.resize = function resize (w, h) { | ||
return this.in("-size", w +"x"+ h).out("-resize", w +"x"+ h); | ||
proto.resize = function resize (w, h, options) { | ||
options = options || ""; | ||
return this.in("-size", w +"x"+ h).out("-resize", w +"x"+ h + options); | ||
} | ||
@@ -15,0 +16,0 @@ |
{ "name": "gm" | ||
, "description": "Graphics Magick for node." | ||
, "version": "0.4.1" | ||
, "version": "0.4.2" | ||
, "author": "Aaron Heckmann <aaron.heckmann+github@gmail.com>" | ||
@@ -5,0 +5,0 @@ , "keywords": ["nodejs", "graphics magick", "graphics", "magick", "image"] |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
740139
118
1221
2