js imagemagic code example

Example 1: 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 2: 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: []}