{"bugs":{"url":"https://github.com/mmaelzer/im-decode/issues"},"dist":{"shasum":"46e22dc5255ca3890e07d476938ac4b19c7956b1","tarball":"https://registry.npmjs.org/im-decode/-/im-decode-0.1.0.tgz","integrity":"sha512-PTj52i+V3C/Kc25xSVXoHhHl6UeoBJZWHW8jZOuQg7t9nrgpR48b7M45+UkM/DbHj2GBrppNUQHQnY5eb4CJSA==","signatures":[{"sig":"MEYCIQDijBOQHQbdXAdKBQMxxV9nMCfiDlNFGScxt3hMDikx1gIhAIJlQlhE8Oqs8oc0QzW7t0Lei9IyqZQlOHvMZBY5jd3x","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"im-decode","_from":".","author":{"name":"Mike Maelzer","email":"mmaelzer@gmail.com"},"readme":"im-decode\n=========\n  \nA node.js library that leverages [ImageMagick](http://www.imagemagick.org) to turn images into RGBA arrays (Uint8Arrays).\n  \n  \n## Install\n\n```\nnpm install im-decode\n```  \n  \n`im-decode` requires ImageMagick CLI tools to be installed. There's plenty of ways to install ImageMagick, choose what's right for you.\n\n## Usage\n\n```javascript\nvar decode = require('im-decode');\ndecode(imageBuffer, function(err, rgbaArray) {\n  // do something\n});\n```\n\n### decode(image, [dimensions], callback)\n* image `Buffer`\n* dimensions (optional) `Array` of dimensions in the form [w, h], i.e. [640, 480]\n* callback `Function(Error, Uint8Array)`  \n\nReturns a `Uint8Array` when provided an image as a `Buffer`. Passing in a dimensions `Array` is optional, but will provide a slight speed improvement (~7% speed increase for 640x480 images was seen in testing). The speed improvement is due to the nature of knowing the size of the end result `Buffer` vs continually creating new `Buffers` of ever increasing size. At least that's my assumption without diving into it any deeper.","license":"MIT","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"mmaelzer","email":"mmaelzer@gmail.com"},"homepage":"https://github.com/mmaelzer/im-decode","keywords":["imagemagick","jpg","jpeg","decode","decoder","rgba"],"repository":{"url":"https://github.com/mmaelzer/im-decode","type":"git"},"_npmVersion":"1.3.17","description":"A node.js library that leverages ImageMagick to turn images into RGBA arrays (Uint8Arrays).","directories":{},"maintainers":[{"name":"mmaelzer","email":"mmaelzer@gmail.com"}],"readmeFilename":"readme.md","_id":"im-decode@0.1.0","version":"0.1.0"}