{"bugs":{"url":"https://github.com/mmaelzer/im-decode/issues"},"dist":{"shasum":"b5f650555c99b0f68e222af8855719b7dd1f1f54","tarball":"https://registry.npmjs.org/im-decode/-/im-decode-0.1.2.tgz","integrity":"sha512-CrNUgeye2Rwoch0hVeT/uupq2o40nJKfo9Z6FByCqUN+ZsIf+7YOfUPwb/0+ojDNlxH8rvrs6zgzFD01VQj16w==","signatures":[{"sig":"MEUCIQCZUGEc4KYpdsMNK1f/lXK4n4GF39UwKnXaf7jWgqnX0AIgJEEzPW6LZ4/I3XxR7dN89BZiUCIElEeKeZd8nixM7gY=","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.21","description":"A node.js library that leverages ImageMagick to turn images into RGBA arrays (Uint8Arrays).","maintainers":[{"name":"mmaelzer","email":"mmaelzer@gmail.com"}],"readmeFilename":"readme.md","_id":"im-decode@0.1.2","version":"0.1.2"}