image resize

Image resize code examples.

There is 1 snippet with the image resize tag

  • Resize an Image using ImageMagick and node.js

    A simple example showing how to resize an image using the imagemagick module.

    var http = require("http");
    var im = require("imagemagick"); 
    
    var server = http.createServer(function(req, res) {
    
      var options = {
        width: 120,
        height: 80,
        srcPath: "image.png",
        dstPath: "output.png"
      };
    
      im.resize(options, function(err) {
        if(err) { throw err; }
        res.end("Image resize complete");
      });
    
    }).listen(8080);
    27 Aug 2013