{"_id":"@canvas/image-data","_rev":"1705668","name":"@canvas/image-data","description":"An `ImageData` implementation for usage outside of the browser.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"linusu","email":"linus@folkdatorn.se"}],"time":{"modified":"2026-11-09T18:10:35.000Z","created":"2018-11-20T20:04:30.525Z","1.1.0":"2025-10-14T12:38:56.853Z","1.0.0":"2018-11-20T20:04:30.525Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/node-gfx/image-data.git"},"versions":{"1.1.0":{"name":"@canvas/image-data","version":"1.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/node-gfx/image-data.git"},"react-native":"index.js","browser":"browser.js","scripts":{"test":"standard && nyc --check-coverage --lines=100 node test"},"devDependencies":{"nyc":"^14.1.1","standard":"^14.3.1"},"_id":"@canvas/image-data@1.1.0","gitHead":"1f454925d73dc71b05569ed8379bc3c482764a45","types":"./index.d.ts","description":"An `ImageData` implementation for usage outside of the browser.","bugs":{"url":"https://github.com/node-gfx/image-data/issues"},"homepage":"https://github.com/node-gfx/image-data#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QdObRRjRbcXGmM1tmJ+MrHcaz1MftF2+W7YI+MsphnsCrmtyfS0d5qJbk0MeSbUeyM/jCb0hmnkXPsy026L7dA==","shasum":"ead4e594515f144cc372892cacb4b24ec6d43629","tarball":"http://registry-npm.ywwl.com/@canvas/image-data/download/@canvas/image-data-1.1.0.tgz","fileCount":7,"unpackedSize":13414,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC0v3zMeTGI7lTPmPE1TDNooPIvTp7GZPpERYMU2IiMeAIgZmAEtg+fZOKjPOn9xPqREmKfQDzEvtWViAQBUGTQLZk="}],"size":3037,"noattachment":false,"key":"/@canvas/image-data/-/@canvas/image-data-1.1.0.tgz"},"_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"directories":{},"maintainers":[{"name":"linusu","email":"linus@folkdatorn.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/image-data_1.1.0_1760445536673_0.1253199762048165"},"_hasShrinkwrap":false,"publish_time":1760445536853,"_cnpm_publish_time":1760445536853},"1.0.0":{"name":"@canvas/image-data","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/node-gfx/image-data.git"},"browser":"browser.js","scripts":{"test":"standard && nyc --check-coverage --lines=100 node test"},"devDependencies":{"nyc":"^13.1.0","standard":"^12.0.1"},"gitHead":"73a842f9f0baa499869304e450d6dcdac72c2101","description":"An `ImageData` implementation for usage outside of the browser.","bugs":{"url":"https://github.com/node-gfx/image-data/issues"},"homepage":"https://github.com/node-gfx/image-data#readme","_id":"@canvas/image-data@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"integrity":"sha512-BxOqI5LgsIQP1odU5KMwV9yoijleOPzHL18/YvNqF9KFSGF2K/DLlYAbDQsWqd/1nbaFuSkYD/191dpMtNh4vw==","shasum":"3bd2cd856e13fc9e2c25feff360a4056857b0367","tarball":"http://registry-npm.ywwl.com/@canvas/image-data/download/@canvas/image-data-1.0.0.tgz","fileCount":7,"unpackedSize":13384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9GjPCRA9TVsSAnZWagAAllYP/A0Yj8FhOfQg+6HsEEzr\nyglUJMQvx/L56FRLkmnhQZ2Msqex3pATqyOYIAkH6nmRJWzZ449KYAuo7eQx\ne6eLQK6TAqOB/jl/xqen7q4EhjWgvvpQqzDDIQd4ftUfrlMI/5/whR1+wt65\nHxs5gCDPlL+n271WSF6b0IYgRKmLKY8pJiOH+c1lKhTTG/OGk0pQ+H7h+LYZ\nEsTT1s6ptq4ELwyHlpHDn4AYqqT6wf2w0HYEMuwI8GcgeY8fjXdV/4v+OcQB\nx3MbM8FLr1eF4JOeqVlulzov8zWF8/Gi/DgnL+UBQ2aNRrUZ9mfOYl7nCreW\niFuYgWbjKqOrQmi3stO6BG74q8Cvfwoxp+QEl1SPbLOM9igCpC+StTDC7Ze6\n6weI3JdFUsOksdWclVUOqnPBpyl3ppbDIgdrITTLczPfjSeMB+W5DvdvBccW\nPjVKYzp67xULhiv5ev9YHluFaKDUSqILzQ81VzlYDz9PrueawLsTO6a3sebp\nNyoDXAFemBrmGadBQOiStMg28ELhuj9FLnvrvmlXDEL88IqEtyikdphrphm9\nYXySfmDhUjn/nKERrS3IcicM3uOjtZ3eNlL894rLVY0dYV6yGBk17Rwhf3A/\nOow8KV6dN/5WmUIgfrGxlBkVgymLMMjaME8CxR57cbQh+cNyzhaSthGq0l66\nJeJb\r\n=NXNF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa5sBjrV7lDNDrmF1IqSfossI2oZieyptoMak0IEq/CQIgHq2fsKjCdUI8vMPlCikRt398w/Lxf9yLWQYTsBgZvCE="}],"size":3034,"noattachment":false,"key":"/@canvas/image-data/-/@canvas/image-data-1.0.0.tgz"},"maintainers":[{"name":"linusu","email":"linus@folkdatorn.se"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image-data_1.0.0_1542744270418_0.4642184265344771"},"_hasShrinkwrap":false,"publish_time":1542744270525,"_cnpm_publish_time":1542744270525}},"readme":"# ImageData\n\nAn `ImageData` implementation for usage outside of the browser.\n\n## Installation\n\n```sh\nnpm install --save @canvas/image-data\n```\n\n## Usage\n\n```js\nconst ImageData = require('@canvas/image-data')\n\nconst img = new ImageData(2, 4)\n\nconsole.log(img.width)\n//=> 2\n\nconsole.log(img.height)\n//=> 4\n\nconsole.log(img.data)\n//=> Uint8ClampedArray [ 0, 0, 0, 0, 0, ... ]\n```\n\n## Hacking\n\nThe tests are made to be run against both this implementation and Chrome's implementation to make sure that we behave in the same way. You can run the tests in Chrome by spinning up a local web server and open `test.html`.\n","_attachments":{},"homepage":"https://github.com/node-gfx/image-data#readme","bugs":{"url":"https://github.com/node-gfx/image-data/issues"},"license":"MIT"}