{"dist":{"shasum":"8fe593c2411c56d52ca4b2d9ef884fc03499c994","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.1073.1276.0.tgz","fileCount":10,"integrity":"sha512-o84qWNjoTdOKZNQK7N19aIhucc5pqCKRozLyzm4Ja+YmPoCmjsqibYLyX2A2Wm7IKq7RuSxkOSn9lEGKfgmuug==","signatures":[{"sig":"MEUCIFTDtoMlW+0jDdxY0uZgbU/88Ttjf6QCMDmYskxYyy96AiEAmtzo5jaRJWHDp41TfcJVkszgUs+BxawVJ4fNxGxib0o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiE3OVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTQg//cBWfegj/UWOrwQnRMMPORRWrllyN3+yLmV+HbGYAF164JUxH\r\nvYHEa9Fx4IEEW+IO3pZIAZYEiox7CKNL/kAxu26j+fZRj3iiwtzrsAud3mhn\r\nygzDngJlofOdQG/S/ZtNIMR3H5UDWjkGpZ9F9myFwX18bnFFy6i8AUFgtiIM\r\nQk7dSP56uIqxjvOTmxDSH/RixcF1i74Eqm8liK25apJ57iR/i+XN+xA4bwx7\r\nBFFteZ9sqQaLhCwZy8AhofBH5+fF0YooEZ+wmN0xLojgFMdKKYcV0wlh/frD\r\niMXpPQ9jtBbvsDSIwmy/Fm/gwtgS6c3mRwndiQySRjxGI/bJNbRt6VTE1bOr\r\n7fCAy7f/fIbL5ipFVGS38zXU8H/MTuNONUXE51X4gn6INZg90+BbxjiaBMtg\r\nN7FMP4hYQ/+L/viIN/2lEN/T+Nso896/YaQgQkHO2obqqr+S27faUckByPC9\r\ngZp0vG0Cwq4VB6iCqOzY5o5AUpdP6Tx8haMNSbDe/qPxXY0HywAwhK73yOBL\r\n61KmaAyGvtUYG03K4fIrc3vHBFm0GhjT1z1qZma4CLP0aadI09SdUrIzA/Ju\r\n/VOeVMKNDHfPwuGZJg2rq5nLPwShdFOdaI1aDxjWXAtd92+YtAVL/RzWzf1w\r\n5yi8JC/qMe6G8pjTodbM8IIj9xZ1LLDiiao=\r\n=GI51\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":"47b0c513d6dfc9ab5d1b2c09cf3ceb88b3895f80","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.1073.1276.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.1073.1276.0_1645441941394_0.06880468961511288","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.1073.1276.0","version":"0.16.2-canary.1073.1276.0"}