{"dist":{"shasum":"6850ce9c542b5d1ded3e114314f328d65c0941cc","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.1045.1221.0.tgz","fileCount":10,"integrity":"sha512-vlDjSc5Y/Upi7YnK2DTlhVfb9oQTh6bIxbahOG+gLkvNysosOIHIbdUsHCrhWtIDGHSNzzVkMrpTV1HXmhmfFA==","signatures":[{"sig":"MEUCIERozyaMfXO8GTrXlZHdLHzlN1xNJ52hRS33eS0Yu3kmAiEAsnTWYyMzLmAsHt49Ky7vh7I0/4HcVWBfvTQtLTUiBkE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLtI/CRA9TVsSAnZWagAAW3QP/AqAO4/IYRVYtHpLn7M4\nAGEMA1yhOckadH9mxmSq1QjNiPztg8SY5BEnPHTqBuHjzN9kiIQts6ZRTWPk\n24DPfVw4+E3RK5seVrMyUm9pRlgSExJdE4G3PmzVleZ2P54MyATZDXtOe5HB\ncTyWNHN9i7V7hET6GBM0+y16Y7bUMudKLL10ps+grgknMH5YvsbpsWR8ZhSy\nBzimanh710V+OGgPeIHyH+eClSk7pKEVzy3He7oJ6zjogcAxwymlprjS5koV\ncw0aNiLzWTrmEfrGPtZ8DcARSDT3If1e17LKVPYhSILQQv5NDoekmcylf9PD\nnC3WI9BmUPWlR4EVLmhq0r3u5mQCLulIDxnDnjDMxSr8Kr9O3ecRzjjweGBY\nd+m9v3nz3SKsgqlls4yZwpgXlgNwyrsrlMJvcS4SAJfCe81Msk1rq0s69938\nc4nuBrf00d1NGNgTc2Hg65ex2REkbuLtKz4off2AfuT0sDGQvLudiyQxMkmZ\n7ru0lzAl2MPaveB5SJsp2xT3bXX3ldrqDiwkpcbWGCsS4SqwIJbm8gsc86dt\nrV/a3NKVHC517mmrE+F1Q9PyBiXCz7Tp/uM4iLklasuaWtBQdIqjUgiQP/43\nTaoQSCK1gSeFSGJ0YoiBMZ6dEImlJujAdymF5DjjnTvTxHEtc7Zx6hXYTbIt\nCHMm\r\n=xb84\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@jimp/plugin-scale","types":"index.d.ts","author":"","module":"es/index.js","readme":"<div align=\"center\">\n  <img width=\"200\" height=\"200\"\n    src=\"https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-11/256/crayon.png\">\n  <h1>@jimp/plugin-scale</h1>\n  <p>Scale an image.</p>\n</div>\n\n## scale\n\nUniformly scales the image by a factor.\n\n- @param {number} f the factor to scale the image by\n- @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER)\n- @param {function(Error, Jimp)} cb (optional) a callback for when complete\n\n```js\nimport jimp from 'jimp';\n\nasync function main() {\n  const image = await jimp.read('test/image.png');\n\n  image.scale(2);\n  image.scale(2, jimp.RESIZE_BEZIER);\n}\n\nmain();\n```\n\n## scaleToFit\n\nScale the image to the largest size that fits inside the rectangle that has the given width and height.\n\n- @param {number} w the width to resize the image to\n- @param {number} h the height to resize the image to\n- @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER)\n- @param {function(Error, Jimp)} cb (optional) a callback for when complete\n\n```js\nimport jimp from 'jimp';\n\nasync function main() {\n  const image = await jimp.read('test/image.png');\n\n  image.scaleToFit(100, 100);\n}\n\nmain();\n```\n","gitHead":"f5e9ecb24dc54f351373c5dbeac49f0fe018662f","license":"MIT","scripts":{"build":"npm run build:node:production && npm run build:module","build:node":"babel src -d dist --source-maps --config-file ../../babel.config.js","build:debug":"npm run build:node:debug","build:watch":"npm run build:node:debug -- -- --watch --verbose","build:module":"cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js","build:node:debug":"cross-env BABEL_ENV=development npm run build:node","build:node:production":"cross-env BABEL_ENV=production npm run build:node"},"_npmUser":{"name":"alisowski","email":"lisowski54@gmail.com"},"_npmVersion":"lerna/3.16.4/node@v10.24.1+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"10.24.1","dependencies":{"@jimp/utils":"0.16.2-canary.1045.1221.0","@babel/runtime":"^7.7.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"@jimp/custom":">=0.3.5","@jimp/plugin-resize":">=0.3.5"},"_npmOperationalInternal":{"tmp":"tmp/plugin-scale_0.16.2-canary.1045.1221.0_1630458431178_0.8263017944898037","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.1045.1221.0","version":"0.16.2-canary.1045.1221.0"}