JSPM

imagemagick-identify-parser

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q37002F

Parses output from the `identify` program into an object.

Package Exports

  • imagemagick-identify-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagemagick-identify-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ImageMagick Identify Parser

Parses verbose output from the identify program into an object.

Example

var im = require('imagemagick');
var imParse = require('imagemagick-identify-parser');

im.identify(['-verbose', '/path/to/image.png'], function(e, result) {

  var data = imParse(result, true);

  console.log(data.geometry);
  // 480x360+0+0
  
  console.log(data.channelStatistics.red.standardDeviation);
  // 60.4782 (0.237169)
});