Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gm

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gm - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

lib/.args.js.swp

6

examples/resize.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc