{"_id":"pngjs-image","_rev":"18-dcf8ac6f0c1cc99b0795357f39f59663","name":"pngjs-image","description":"JavaScript-based PNG image encoder, decoder, and manipulator","dist-tags":{"latest":"0.11.7"},"versions":{"0.9.3":{"name":"pngjs-image","version":"0.9.3","description":"Native PNG image manipulation","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"pngjs":"0.4.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.1","istanbul":"0.3.2","mocha":"1.21.4","yuidocjs":"0.3.50"},"gitHead":"02a9353d19540a71fbdb77da4352ff269f40ded2","_id":"pngjs-image@0.9.3","_shasum":"7aa3f8a9511a70e19ebe1bf538a1c0593a8170fa","_from":".","_npmVersion":"1.5.0-alpha-2","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"}],"dist":{"shasum":"7aa3f8a9511a70e19ebe1bf538a1c0593a8170fa","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.9.3.tgz","integrity":"sha512-SpFP3b246mcu4TiCurFtE/7HtlKbc4OIiYCpBjTmKzerqa3PdcRK4R9NrZi6eGznpTd3cMCFD9OZ8MbnEciyPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDI7rGpSTlYWpg5Yna0tWItpIQLh2ikOIl201oOuWQdiwIgXI93e4M/DbPTgCmc9+IMXfutkCxhEVzpxcEKlFQffZI="}]},"directories":{}},"0.10.0":{"name":"pngjs-image","version":"0.10.0","description":"Native PNG image manipulation","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"pngjs":"0.4.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"473a7ceb01c9cdfae9bfba432459086b38733a56","_id":"pngjs-image@0.10.0","_shasum":"53503326a217f73b6695b6ff953f90aa8b25a4f0","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"53503326a217f73b6695b6ff953f90aa8b25a4f0","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.10.0.tgz","integrity":"sha512-LzISTFDG9LJpkLTZTyDYO6U7qHE/nl0/Wc+N8NmO429SYHiTzyWy0SOP8agnSJr9Idlow8aji+1nttvhjSEUGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKVowwgGo55MXclCEv6rg0JoUGcAkMOn/CRU5qDBJGFAIgWhS9izYZVsSLCFbR3eEv7WxsYUAqZnbyHoJFqjnZsPM="}]},"directories":{}},"0.11.0":{"name":"pngjs-image","version":"0.11.0","description":"Native PNG image manipulation","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"pako":"^0.2.6","pngjs":"0.4.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"18320ba24dbc85dc53804e0595c34a0eaab75e3b","_id":"pngjs-image@0.11.0","_shasum":"4ffc92cc3b1d2fc169264ada6ac426af069d4687","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"4ffc92cc3b1d2fc169264ada6ac426af069d4687","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.0.tgz","integrity":"sha512-34Gb/yuGirwfc81Hfms/y4fAw+vlduFLesZ1EgOBbYICSlzTTZSliZZ5xLs89Okhr3U7ZoKGvA6gPrvvjVjWgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFNkHxdOIGpfPa67ioYi0L0Hsw3mBX5uP3wjx7JECvjIAiEAvOSTZDG87dYWtW+y0BHh3+U1lS60Jpd8bGiYIqJHsIk="}]},"directories":{}},"0.11.1":{"name":"pngjs-image","version":"0.11.1","description":"Native PNG image manipulation","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"pako":"^0.2.6","pngjs":"0.4.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"47d39bfc2bdba78520639fce191da200ad9c5689","_id":"pngjs-image@0.11.1","_shasum":"d4a8c59df47374a17fe64f468db6bbaeaf3d693a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"d4a8c59df47374a17fe64f468db6bbaeaf3d693a","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.1.tgz","integrity":"sha512-hFabf9+GB6hHTt5DE2mvKLIcaI/rLypwLr7bSSIQicl7qEdEUS3GOu8qdseYVIAa3cKDWObRQH/f4OpsYJu+GQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaNRiJMp9U9WPOpmUI8haFLC5Acl0GXYOne0OmMsypyAIhANyCyaYuQfPaOIyhr5iohJjgTEZsHpELTHORR5jSbocL"}]},"directories":{}},"0.11.2":{"name":"pngjs-image","version":"0.11.2","description":"Native PNG image manipulation","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"pako":"^0.2.6","pngjs":"0.4.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"c6939c7632b0e0d19db3283239716c39806fd3bd","_id":"pngjs-image@0.11.2","_shasum":"d579e64676747293feb0f9089d1d2521858cd488","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"d579e64676747293feb0f9089d1d2521858cd488","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.2.tgz","integrity":"sha512-VoummZ6WQFI6VdcFvqM5yCLisMaoAwd4kGNdeyj/YS/weP1w/7mBkwMCjj8IeX3EEZ+TOtDsGzlVzQJoss6mig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUo3OqjnFsiQQ8Fc6owoIZlRUEN437zxhsAIw1wt3K/AiAkfU+oK/0aQwUfMu6rRiJTD4vd3MIOqhMqlGK5OzMnWQ=="}]},"directories":{}},"0.11.3":{"name":"pngjs-image","version":"0.11.3","description":"Native PNG image manipulation","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"pako":"^0.2.6","pngjs":"0.4.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"c8915248af65d37227996c02d12d4aed71025121","_id":"pngjs-image@0.11.3","_shasum":"069e165c0aa860651d72afd6a943c4a570600eda","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"069e165c0aa860651d72afd6a943c4a570600eda","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.3.tgz","integrity":"sha512-/R3klbYirdYjFEnAB2fLL72l7Z+tj+0+CkPfEBka53BAcMjm6jZJxqm7lENc3QK1aVYAfxXteJ7Z/LvQBupr1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0hpLjyYJJ8PyOslHaJ3vT0fYPW22q7bkpwKQWZPv9IwIgEn89OL9BRlg4WusMMVSRiya78Jwes5qqaVqKIGC2BIk="}]},"directories":{}},"0.11.4":{"name":"pngjs-image","version":"0.11.4","description":"Native PNG image manipulation","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"pako":"^0.2.6","pngjs":"0.4.0","request":"^2.55.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"13c74f3e97d04504ceade4bc92ff72b14398638b","_id":"pngjs-image@0.11.4","_shasum":"3ab7a0690f9d1a0bff9de6998f6ff60e2b2d10bd","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"3ab7a0690f9d1a0bff9de6998f6ff60e2b2d10bd","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.4.tgz","integrity":"sha512-eY4Z1IGJ0yf5LUEDi5wUbrfAuauMeWiv+UIzIvd3v0qNXDv9ov1AAXwkLpk2mMwPHs0U8dT6pxXBEvt4L89WAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt1s60M/spIz6WAOI15SnUfcwl3ywkOjVxLFD2DfR5nAIhAO8CfSHEVZ8mObzf/mkZpY36FdT8HA2ovyNluOIWhNll"}]},"directories":{}},"0.11.5":{"name":"pngjs-image","version":"0.11.5","description":"JavaScript-based PNG image encoder, decoder, and manipulator","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"iconv-lite":"^0.4.8","pako":"^0.2.6","pngjs":"0.4.0","request":"^2.55.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"5fd13cf3037ab8676d991a211d7c31bf1e3d02fb","_id":"pngjs-image@0.11.5","_shasum":"4ae6f64611239441a3f0e5a5d663dc78063879f2","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"4ae6f64611239441a3f0e5a5d663dc78063879f2","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.5.tgz","integrity":"sha512-PUe97Rs84m47UAu8LRLDSXSHujVcD6VOIXwQ+wz7fUQVU8XPJ+TJuClZhL8OrF6okjpKV1WGElVbK6TFewRe3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN74d8lO9u8axW39t24O5gxNouUvvlUnaTi/w0NB6gEwIhAIbcjlVy+s59UQSJKoe7j17wI3xhTZwx6jiFqa1MM4xB"}]},"directories":{}},"0.11.6":{"name":"pngjs-image","version":"0.11.6","description":"JavaScript-based PNG image encoder, decoder, and manipulator","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"iconv-lite":"^0.4.8","pako":"^0.2.6","pngjs":"0.4.0","request":"^2.55.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"e34e80af11e5484b6072dbaee56c7ec89b66c0ca","_id":"pngjs-image@0.11.6","_shasum":"50c4dda7bdb829c156682993ed5f9397b73325e3","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"marcelerz","email":"marcel.erz@gmail.com"},"maintainers":[{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"davglass","email":"davglass@gmail.com"}],"dist":{"shasum":"50c4dda7bdb829c156682993ed5f9397b73325e3","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.6.tgz","integrity":"sha512-2xzu9FKfgqlgMg/0ed2dgEyq//Mr8/MXuOqANktuwAPd2gJl/utdGsaTke1mSucx/UUaZx/YQ4Agck5HQiVYJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfiq+Ryfr/SVqNXIuYDqZTTNg7qHJLHgiYW0yQGo07uAIhAL3wVIi7eAnvvPnBtaAROWkYLEIJiuLlf9UokGVqsWz7"}]},"directories":{}},"0.11.7":{"name":"pngjs-image","version":"0.11.7","description":"JavaScript-based PNG image encoder, decoder, and manipulator","license":"MIT","main":"index.js","homepage":"https://github.com/yahoo/pngjs-image","bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"keywords":["PNG","image","manipulation","filter","alpha"],"scripts":{"test":"istanbul cover -- _mocha --reporter spec","docs":"yuidoc ."},"dependencies":{"iconv-lite":"^0.4.8","pako":"^0.2.6","pngjs":"2.3.1","request":"^2.55.0","stream-buffers":"1.0.1","underscore":"1.7.0"},"devDependencies":{"chai":"1.9.2","coveralls":"2.11.2","codeclimate-test-reporter":"0.0.4","istanbul":"0.3.2","mocha":"1.21.4","sinon":"1.12.2","sinon-chai":"2.7.0","yuidocjs":"0.3.50"},"gitHead":"63f11c69d87da204d7aebb4160c2d21bbfee3d4a","_id":"pngjs-image@0.11.7","_shasum":"631dd59924569fc82ffebae0d5d53f85f54dab62","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"davglass","email":"davglass@gmail.com"},"maintainers":[{"name":"davglass","email":"davglass@gmail.com"},{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"paragbhattacharjee","email":"parag.bhattacharjee@gmail.com"}],"dist":{"shasum":"631dd59924569fc82ffebae0d5d53f85f54dab62","tarball":"https://registry.npmjs.org/pngjs-image/-/pngjs-image-0.11.7.tgz","integrity":"sha512-JRyrmT+HXa1/gvdHpebus8TGqKa8WRgcsHz/DDalxRsMhvu6AOA99/enBFjZIPvmXVAzwKR051s80TuE1IiCpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9wDX+N+e3DcD0vIWvLIrjupVtI3yByKuW2O5CnqYEfAiEAveRQ+nSOzMrHm1nms7dDqAH13ev/zHyNiFuGh8FngEg="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/pngjs-image-0.11.7.tgz_1477315541481_0.6384250721894205"},"directories":{}}},"readme":"PNGjs-Image\n===========\n\nJavaScript-based PNG image encoder, decoder, and manipulator\n\n[![Build Status](https://img.shields.io/travis/yahoo/pngjs-image.svg)](http://travis-ci.org/yahoo/pngjs-image)\n[![Coveralls Coverage](https://img.shields.io/coveralls/yahoo/pngjs-image.svg)](https://coveralls.io/r/yahoo/pngjs-image)\n[![Code Climate Grade](https://img.shields.io/codeclimate/github/yahoo/pngjs-image.svg)](https://codeclimate.com/github/yahoo/pngjs-image)\n\n[![NPM version](https://badge.fury.io/js/pngjs-image.svg)](https://www.npmjs.com/package/pngjs-image)\n[![NPM License](https://img.shields.io/npm/l/pngjs-image.svg)](https://www.npmjs.com/package/pngjs-image)\n\n[![NPM](https://nodei.co/npm/pngjs-image.png?downloads=true&stars=true)](https://www.npmjs.com/package/pngjs-image)\n[![NPM](https://nodei.co/npm-dl/pngjs-image.png?months=3&height=2)](https://www.npmjs.com/package/pngjs-image)\n\n[![Coverage Report](https://img.shields.io/badge/Coverage_Report-Available-blue.svg)](http://yahoo.github.io/pngjs-image/coverage/lcov-report/)\n[![API Documentation](https://img.shields.io/badge/API_Documentation-Available-blue.svg)](http://yahoo.github.io/pngjs-image/docs/)\n\n[![Gitter Support](https://img.shields.io/badge/Support-Gitter_IM-yellow.svg)](https://gitter.im/preceptorjs/support)\n\n**Table of Contents**\n* [Installation](#installation)\n* [Usage](#usage)\n    * [Static-Methods](#static-methods)\n    * [Instance-Methods](#instance-methods)\n        * [Pixel manipulation](#pixel-manipulation)\n        * [Pixel conversion](#pixel-conversion)\n    * [Filters](#filters)\n* [API-Documentation](#api-documentation)\n* [Tests](#tests)\n* [Third-party libraries](#third-party-libraries)\n* [License](#license)\n\n\n##Installation\n\nInstall this module with the following command:\n```shell\nnpm install pngjs-image\n```\n\nAdd the module to your ```package.json``` dependencies:\n```shell\nnpm install --save pngjs-image\n```\nAdd the module to your ```package.json``` dev-dependencies:\n```shell\nnpm install --save-dev pngjs-image\n```\n\nRequire the module in your source-code:\n```javascript\nvar PNGImage = require('pngjs-image');\n```\n\n##Usage\n\n**Example:** Creating a new image\n```javascript\nvar image = PNGImage.createImage(100, 300);\n\n// Get width and height\nconsole.log(image.getWidth());\nconsole.log(image.getHeight());\n\n// Set a pixel at (20, 30) with red, having an alpha value of 100 (half-transparent)\nimage.setAt(20, 30, { red:255, green:0, blue:0, alpha:100 });\n\n// Get index of coordinate in the image buffer\nvar index = image.getIndex(20, 30);\n\n// Print the red color value\nconsole.log(image.getRed(index));\n\n// Get low level image object with buffer from the 'pngjs' package\nvar pngjs = image.getImage();\n\nimage.writeImage('path/to/file', function (err) {\n    if (err) throw err;\n    console.log('Written to the file');\n});\n```\n\n**Example:** Loading an image\n```javascript\nPNGImage.readImage('path/to/file', function (err, image) {\n    if (err) throw err;\n\n    // Get width and height\n    console.log(image.getWidth());\n    console.log(image.getHeight());\n\n    // Set a pixel at (20, 30) with red, having an alpha value of 100 (half-transparent)\n    image.setAt(20, 30, { red:255, green:0, blue:0, alpha:100 });\n});\n```\n\n**Example:** Loading an image from an url\n```javascript\nPNGImage.readImage('https://s.yimg.com/rz/l/yahoo_en-US_f_p_142x37_2x.png', function (err, image) {\n    if (err) throw err;\n\n    // The image is in the 'image' variable if everything went well\n});\n```\n\n###Static-Methods\n* ```<PNGImage> = PNGImage.addFilter(key, fn)``` Adds the ```fn``` filter with identifier ```key``` to the filter-list\n* ```<PNGImage> = PNGImage.createImage(width, height)``` Creates an image with the given size\n* ```<PNGImage> = PNGImage.copyImage(image)``` Copies an image into a new container\n* ```PNGImage.readImage(path, fn)``` Loads an image from the file or url, calling the ```fn``` function when done\n* ```PNGImage.loadImage(blob, fn)``` Loads an image from memory, calling the ```fn``` function when done\n\n###Instance-Methods\n* ```<pngjs> = image.getImage()``` Gets the ```pngjs``` instance\n* ```<Buffer> = image.getBlob()``` Gets the data as a buffer object\n* ```<int> = image.getWidth()``` Gets the width of the image\n* ```<int> = image.getHeight()``` Gets the height of the image\n* ```image.clip(x, y, width, height)``` Clips the current image; the dimensions have to be smaller than the original image\n* ```image.fillRect(x, y, width, height, color)``` Fills the rectangle with the supplied color\n* ```image.applyFilters(filters, returnResult)``` Applies a list of filters to the image\n* ```<int> = image.getIndex(x, y)``` Converts the x and y coordinates to the sequential index of the image buffer\n* ```image.writeImage(path, fn)``` Writes the image to the filesystem and calling the ```fn``` function when done\n* ```image.toBlob(fn)``` Exports data to a buffer and calling the ```fn``` function when done\n\n####Pixel manipulation\n* ```<uint32> = image.getAtIndex(idx)``` Gets complete 32-bit pixel at index ```idx```\n* ```<uint32> = image.getAt(x, y)``` Gets complete 32-bit pixel at the x and y coordinate\n* ```<uint32> = image.getPixel(x, y)``` Gets complete 32-bit pixel at the x and y coordinate\n* ```image.setAtIndex(idx, color)``` Sets a specific color at the index. A color left-off will not be modified.\n* ```image.setAt(x, y, color)``` Sets a specific color at the x and y coordinate. A color left-off will not be modified.\n* ```image.setPixel(x, y, color)``` Sets a specific color at the x and y coordinate. A color left-off will not be modified.\n* ```<uint32> = image.getColorAtIndex(idx)``` Gets the color components of the pixel at index ```idx```\n* ```<uint32> = image.getColor(x, y)``` Gets the color components of the pixel at the x and y coordinate\n* ```<uint8> = image.getRed(idx)``` Gets the red intensity at an index\n* ```image.setRed(idx, value, opacity)``` Sets the red intensity at an index\n* ```<uint8> = image.getGreen(idx)``` Gets the green intensity at an index\n* ```image.setGreen(idx, value, opacity)``` Sets the green intensity at an index\n* ```<uint8> = image.getBlue(idx)``` Gets the blue intensity at an index\n* ```image.setBlue(idx, value, opacity)``` Sets the blue intensity at an index\n* ```<uint8> = image.getAlpha(idx)``` Gets the alpha intensity at an index\n* ```image.setAlpha(idx, value, opacity)``` Sets the alpha intensity at an index\n\n####Pixel conversion\n* ```<uint32> = image.getBlurPixelAt(idx, funcName)``` Gets the blurred color of a pixel at index ```idx```\n* ```<uint32> = image.getYIQAtIndex(idx)``` Gets the YIQ-value of a pixel at index ```idx```\n* ```<uint32> = image.getYIQ(x, y)``` Gets the YIQ-value of a pixel at the x and y coordinate\n* ```<uint32> = image.getLumaAtIndex(idx)``` Gets the luma of a pixel at index ```idx```\n* ```<uint32> = image.getLuma(x, y)``` Gets the luma of a pixel at the x and y coordinate\n* ```<uint32> = image.getSepiaAtIndex(idx)``` Gets the sepia-color of a pixel at index ```idx```\n* ```<uint32> = image.getSepia(x, y)``` Gets the sepia-color of a pixel at the x and y coordinate\n* ```<uint32> = image.getLuminosityAtIndex(idx)``` Gets the luminosity of a pixel at index ```idx```\n* ```<uint32> = image.getLuminosity(x, y)``` Gets the luminosity of a pixel at the x and y coordinate\n* ```<uint32> = image.getLightnessAtIndex(idx)``` Gets the lightness of a pixel at index ```idx```\n* ```<uint32> = image.getLightness(x, y)``` Gets the lightness of a pixel at the x and y coordinate\n* ```<uint32> = image.getGrayScaleAtIndex(idx)``` Gets the grayscale-value of a pixel at index ```idx```\n* ```<uint32> = image.getGrayScale(x, y)``` Gets the grayscale-value of a pixel at the x and y coordinate\n\n###Filters\nFollowing filters can be applied to an image:\n* blur\n* grayScale\n* lightness\n* luma\n* luminosity\n* sepia\n\n##API-Documentation\n\nGenerate the documentation with following command:\n```shell\nnpm run docs\n```\nThe documentation will be generated in the ```docs``` folder of the module root.\n\n##Tests\n\nRun the tests with the following command:\n```shell\nnpm run test\n```\nThe code-coverage will be written to the ```coverage``` folder in the module root.\n\n##Third-party libraries\n\nThe following third-party libraries are used by this module:\n\n###Dependencies\n* pako: https://github.com/nodeca/pako\n* pngjs: https://github.com/niegowski/node-pngjs\n* stream-buffers: https://github.com/samcday/node-stream-buffer\n* underscore: http://underscorejs.org\n* request: https://github.com/request/request\n\n###Dev-Dependencies\n* chai: http://chaijs.com\n* coveralls: https://github.com/cainus/node-coveralls\n* codeclimate-test-reporter: https://github.com/codeclimate/javascript-test-reporter\n* istanbul: https://github.com/gotwarlost/istanbul\n* mocha: https://github.com/visionmedia/mocha\n* sinon: http://sinonjs.org\n* sinon-chai: https://github.com/domenic/sinon-chai\n* yuidocjs: https://github.com/yui/yuidoc\n\n##License\n\nThe MIT License\n\nCopyright 2014-2015 Yahoo Inc.\n","maintainers":[{"name":"davglass","email":"davglass@gmail.com"},{"name":"marcelerz","email":"marcel.erz@gmail.com"},{"name":"paragbhattacharjee","email":"parag.bhattacharjee@gmail.com"}],"time":{"modified":"2022-06-24T05:19:59.526Z","created":"2014-11-03T21:17:37.328Z","0.9.3":"2014-11-03T21:17:37.328Z","0.10.0":"2015-03-29T00:47:32.948Z","0.11.0":"2015-04-20T03:29:41.876Z","0.11.1":"2015-04-21T05:23:55.786Z","0.11.2":"2015-04-22T05:42:29.267Z","0.11.3":"2015-05-23T08:34:58.913Z","0.11.4":"2015-05-23T08:39:49.182Z","0.11.5":"2015-05-29T08:15:04.080Z","0.11.6":"2015-06-05T08:19:11.764Z","0.11.7":"2016-10-24T13:25:43.208Z"},"homepage":"https://github.com/yahoo/pngjs-image","keywords":["PNG","image","manipulation","filter","alpha"],"repository":{"type":"git","url":"https://github.com/yahoo/pngjs-image.git"},"author":{"name":"Marcel Erz","email":"erz@yahoo-inc.com","url":"http://www.marcelerz.com"},"bugs":{"url":"https://github.com/yahoo/pngjs-image/issues"},"license":"MIT","readmeFilename":"README.md","users":{"monolithed":true,"iddo":true,"azoz158":true}}