{"_id":"resize-img","_rev":"15-a56ec1887d8d5752c2694d011306672e","name":"resize-img","description":"Resize images in memory","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"resize-img","version":"1.0.0","description":"Resize PNG images in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/resize-img.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["fast","image","memory","png","resize"],"dependencies":{"get-stream":"^2.0.0","jimp":"^0.2.21","parse-png":"^1.1.1"},"devDependencies":{"ava":"*","image-size":"^0.5.0","pify":"^2.3.0","xo":"*"},"gitHead":"120a2513acc1f4822fcb68d19dfabbd260f52888","bugs":{"url":"https://github.com/kevva/resize-img/issues"},"homepage":"https://github.com/kevva/resize-img#readme","_id":"resize-img@1.0.0","_shasum":"202d31464e4e0be9342f87a8fd47efe1266d89c7","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.10.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"202d31464e4e0be9342f87a8fd47efe1266d89c7","tarball":"https://registry.npmjs.org/resize-img/-/resize-img-1.0.0.tgz","integrity":"sha512-qK4Wc1yruenraJ+LGDcwyecp4QGacL1+yWJYPF1tPpddkmHvY7Rz0boA/SO/kmsDyd25dfXMLKVqS2rz9bTFEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDIAjAAeE3PFClR5lSiKw/bVV9GVvIm5DLI/GzCjAtKAiEAqYAZuT4sJ1GZJ0EpYrDcYOH16V2KoajB9xsXCKbPJYw="}]},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resize-img-1.0.0.tgz_1460995647604_0.7029371890239418"},"directories":{}},"1.1.0":{"name":"resize-img","version":"1.1.0","description":"Resize images in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/resize-img.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bmp","fast","image","jpeg","jpg","memory","png","resize"],"dependencies":{"bmp-js":"0.0.1","file-type":"^3.8.0","get-stream":"^2.0.0","jimp":"^0.2.21","jpeg-js":"^0.1.1","parse-png":"^1.1.1"},"devDependencies":{"ava":"*","image-size":"^0.5.0","pify":"^2.3.0","xo":"*"},"gitHead":"174d9adee1a0f24c95e83a123a63e21ee4558d89","bugs":{"url":"https://github.com/kevva/resize-img/issues"},"homepage":"https://github.com/kevva/resize-img#readme","_id":"resize-img@1.1.0","_shasum":"f4a5be3d784e0d89dd83f6fa7a17cb615f31d019","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.10.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"f4a5be3d784e0d89dd83f6fa7a17cb615f31d019","tarball":"https://registry.npmjs.org/resize-img/-/resize-img-1.1.0.tgz","integrity":"sha512-9lUK4W4yHHI91PztJKqtj8VFyoX62Ex86VxqzANWkKJRJ272KWiB3rlxBpA7TsuZj5vkmM8bV6e3PE5vfCeyYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICUHb9vf20WQGzTBKgw1lbeXpd64qyXeSt2HxoiVtlwxAiEAh1IhD/rBBUMNfrnwYOgBqdVypMMv1TncQTNpcN8YCPk="}]},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resize-img-1.1.0.tgz_1461014293304_0.60683803120628"},"directories":{}},"1.1.1":{"name":"resize-img","version":"1.1.1","description":"Resize images in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/resize-img.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bmp","fast","image","jpeg","jpg","memory","png","resize"],"dependencies":{"bmp-js":"0.0.1","file-type":"^3.8.0","get-stream":"^2.0.0","jimp":"^0.2.21","jpeg-js":"^0.1.1","parse-png":"^1.1.1"},"devDependencies":{"ava":"*","image-size":"^0.5.0","pify":"^2.3.0","xo":"*"},"gitHead":"4958acc7f8004b435e21bbc707ad5e60dee0db1b","bugs":{"url":"https://github.com/kevva/resize-img/issues"},"homepage":"https://github.com/kevva/resize-img#readme","_id":"resize-img@1.1.1","_shasum":"5eeb8f53581a0be2708eec84dd537bed94902122","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.11.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"5eeb8f53581a0be2708eec84dd537bed94902122","tarball":"https://registry.npmjs.org/resize-img/-/resize-img-1.1.1.tgz","integrity":"sha512-nZBEmjE5mM2gFcjtyjF2gJKmLG76uWSK7AMqedC+jqR5TfuvM1edgpW7BMQQg9VP3GhkFWKvWx3oOIaWl8/YdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXnL/sJwhfI++v3HezVQHeIRJrUSam3+rzdJ76kxgp8QIgSDQopnu4jbziSvMmtvRmHeBy3yqAg4JwYJoelEGlJeg="}]},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resize-img-1.1.1.tgz_1473804316802_0.28372273221611977"},"directories":{}},"1.1.2":{"name":"resize-img","version":"1.1.2","description":"Resize images in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/resize-img.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bmp","fast","image","jpeg","jpg","memory","png","resize"],"dependencies":{"bmp-js":"0.0.1","file-type":"^3.8.0","get-stream":"^2.0.0","jimp":"^0.2.21","jpeg-js":"^0.1.1","parse-png":"^1.1.1"},"devDependencies":{"ava":"*","image-size":"^0.5.0","pify":"^2.3.0","xo":"*"},"gitHead":"42dd586e74d8f56a14f2737aa9dbea9b43fbd08b","bugs":{"url":"https://github.com/kevva/resize-img/issues"},"homepage":"https://github.com/kevva/resize-img#readme","_id":"resize-img@1.1.2","_shasum":"fad650faf3ef2c53ea63112bc272d95e9d92550e","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.9.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"fad650faf3ef2c53ea63112bc272d95e9d92550e","tarball":"https://registry.npmjs.org/resize-img/-/resize-img-1.1.2.tgz","integrity":"sha512-/4nKUmuNPuM6gYTWad136ica81baOVjpesgv8FGaIvP0KWcbCWahOWBKaM4tFoM+aVcSA+qQDg28pcnIzFRpJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+qnDWMXRMdbVU6LfkpkpOFZIBOLAptB5V3p9nhascgQIgWFLbd/meSLWBiJEX38Am8FCpsLxPVEb7GiHgXt9YX+c="}]},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resize-img-1.1.2.tgz_1477904442711_0.11141711170785129"},"directories":{}},"2.0.0":{"name":"resize-img","version":"2.0.0","description":"Resize images in memory","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/resize-img.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava"},"keywords":["bmp","fast","image","jpeg","jpg","memory","png","resize"],"dependencies":{"file-type":"^12.3.0","jimp":"^0.8.3"},"devDependencies":{"ava":"^2.4.0","image-size":"^0.8.1","xo":"^0.24.0"},"gitHead":"c040cc4f72185d4c51121298c005cadb54bab85f","bugs":{"url":"https://github.com/kevva/resize-img/issues"},"homepage":"https://github.com/kevva/resize-img#readme","_id":"resize-img@2.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.2","dist":{"integrity":"sha512-im2Kn4CY0c7JGdYXwL7g77T8AUi15YQeEBmmpWuglrcPFq4Di53tIvLXlbasW7UKed9GaZCza/OSxOJrmB0jbg==","shasum":"9194e2647973b1a7f45a0a72edc87af982a25128","tarball":"https://registry.npmjs.org/resize-img/-/resize-img-2.0.0.tgz","fileCount":4,"unpackedSize":3919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg47uCRA9TVsSAnZWagAAxqkQAIA+TECdftdk4/drkUH0\nd4sN8dLJcVKnjrlIm6NM8QE3D77S3l1+SlvtvEdQd9K6U6ky6Z/0k8e01/OL\nWRRptgiZijeo+l5QCutNnu4/wfxS6zIoE7I13cKA7pHZzJTtUiD1eeRpQf6X\nNbM+MpJXMQoJD+NgjnnPyeCMvqkuJnb7ypEfIjtfrYwoXidgTtSxpBnyBC19\nATGPzYFEyvwnpNoZqmiztjliUp2fPShZqt3VUKUJX2K1u8Phz5rbugGiKJwQ\nUNUtB7pzPB9eitHcJUP1WLZ/Urgsbu0OrqLllLOVelRnxl5zhs4cx6L6Vhv2\n3JKpyaFYfXgQsNgjj+9FYGXTBcSpSOasm9tWuU3H3zC2tWkxqzHJWk5r9RjJ\niVWfhcz01oSjnc01tHlfS8yUF1L2cRCpdWyU3GH7NDvqZGluLaG6wqb2FbHI\n7fAN7ycZBmo5pis0RXUdHEpWIbw4/Qd1OcMT9b1qAhGNQWzNhEHBBsg6Se5u\nGhIgpOdvl6mKfWsF/vnilinDNQs56QMU7fZMP0yz+RWoPRXjPAW8KwVUNXAF\ntZMF7ZwZY/OoFMjGWnk+eI8DwinVAkC5w9POqrkYMOBLuWwCx9L+0zZhGU+R\nx8oR+2vcZmJbznDae3kzPy7+/NfgmphVRWtLsRcCaxMEhuCKlfwhtvDUI/aV\nzdII\r\n=LrW1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyVBEgGepOMyr9c6AAckGhJx1luvOp3bC290D2caZtEAIhANgbfIbXGjUuGXCvgxpCClCsY/V52ACoKPtwLPWEHEhR"}]},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resize-img_2.0.0_1568902893758_0.37435471407727405"},"_hasShrinkwrap":false}},"readme":"# resize-img [![Build Status](https://travis-ci.org/kevva/resize-img.svg?branch=master)](https://travis-ci.org/kevva/resize-img)\n\n> Resize images in memory\n\n\n## Install\n\n```\n$ npm install resize-img\n```\n\n\n## Usage\n\n```js\nconst fs = require('fs');\nconst resizeImg = require('resize-img');\n\n(async () => {\n\tconst image = await resizeImg(fs.readFileSync('unicorn.png'), {\n\t\twidth: 128,\n\t\theight: 128\n\t});\n\n\tfs.writeFileSync('unicorn-128x128.png', image);\n})();\n```\n\n\n## API\n\n### resizeImg(buffer, options)\n\nReturns a `Promise<Buffer>` with the resized image.\n\n#### buffer\n\nType: `Buffer`\n\nAn image buffer. Supported formats are `bmp`, `jpg` and `png`.\n\n#### options\n\nType: `Object`\n\n##### width\n\nType: `number`\n\nDesired width of the target image.\n\n##### height\n\nType: `number`\n\nDesired height of the target image.\n\n##### format\n\nType: `string`\n\nThe output file format for the target image. Supported formats are `bmp`, `jpg` and `png`.\n\n\n## Related\n\n* [resize-img-cli](https://github.com/kevva/resize-img-cli) - CLI for this module.\n","maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"}],"time":{"modified":"2022-06-26T11:50:34.558Z","created":"2016-04-18T16:07:29.098Z","1.0.0":"2016-04-18T16:07:29.098Z","1.1.0":"2016-04-18T21:18:14.755Z","1.1.1":"2016-09-13T22:05:17.479Z","1.1.2":"2016-10-31T09:00:44.536Z","3.0.0":"2019-09-19T14:17:26.966Z","2.0.0":"2019-09-19T14:21:34.225Z"},"homepage":"https://github.com/kevva/resize-img#readme","keywords":["bmp","fast","image","jpeg","jpg","memory","png","resize"],"repository":{"type":"git","url":"git+https://github.com/kevva/resize-img.git"},"author":{"name":"Kevin Martensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"bugs":{"url":"https://github.com/kevva/resize-img/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"eerne":true,"jon_shen":true,"dennis.bohn":true,"rocket0191":true,"gzg1500521074":true}}