imagemagick javascript code example

Example 1: imagemagick javascript

{  srcPath: undefined,  srcData: null,  srcFormat: null,  dstPath: undefined,  quality: 0.8,  format: 'jpg',  progressive: false,  width: 0,  height: 0,  strip: true,  filter: 'Lagrange',  sharpening: 0.2,  customArgs: []}

Example 2: imagemagick javascript

im.readMetadata('kittens.jpg', function(err, metadata){  if (err) throw err;  console.log('Shot at '+metadata.exif.dateTimeOriginal);  // -> Shot at Tue, 06 Feb 2007 21:13:54 GMT});

Example 3: imagemagick javascript

im.identify('kittens.jpg', function(err, features){  if (err) throw err;  console.log(features);  // { format: 'JPEG', width: 3904, height: 2622, depth: 8 }});

Tags:

Misc Example