{"dist":{"shasum":"4838ae4ab6e34e938cfb9ec9b31067a54250043c","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.14.0-canary.904.976.0.tgz","fileCount":10,"integrity":"sha512-YbsVbWPOmVVO/rsMxlLnDdfNULtbDDeTWhPzNzysJN8sfbc1S7XoOLmG1FmDgsYHcHfa9DufLYcshcE4CGiVcQ==","signatures":[{"sig":"MEUCICHebgUvo7094gclOW9ZHquHY+uQjmaldLd7bo13VrqWAiEAjfCGb/SPSB6YFI4iNWJ6cPw7DKoBIiX/FrZBAbTWhMg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+hUKCRA9TVsSAnZWagAAEEoP/1kC+a9/ASDBiDJdciCs\nJtXQWm2BNDpN0GIerT2bZTVme9Bs4eigUIaherYTYZbIw9gX5kNoZhQv4Ej8\n/MmGdshjF4YvM0wt8+eT3GwUDVEYwWM2IfqJE0Dq7pxTFLpiKMNYC+2Jw3xo\n/NpJNcggwyHZ9tIVkandif2PNNU2yxhNJb3eZD7TPrOR1Zp/fKv6Z0CtTm7b\ninAL/WdMtX2xTpk5dHXao8841A+O6EmuPfLnOxAt2EjPzWkSJjGWsgbk4mYB\n1xTBIq2yn8o0iJ22Sn43bN+RYNDpjv0Tynlwf/r2jKYsHG3ghxOfR8qcafZU\nWuZWYZYPuJTMTlFSsyKdXzyv62rDHt8JC8Lo7l7mVPDnGd12Wai0jgE8sRAm\n9FqV9Rj2b5bc23r1vaEmg2UO5bfW3Je9iGHSq+uFFn12xguc+WF3CaqQyumK\npignIMrC0L3VkjqJgJ0OJHkQfkOx6QfFAtVGPPWpUt8+U4CpnoOKQlLARE4w\nHbCaLS1DnXzPHxwLWoneJ2L6gmDCfQ76SYqGwL1KHdIqwm1p2nhWIhWQA1pt\n4uFOW6Aqx0jHZXUTXfLWjDhuJQngbG9Jk0e/G5d4G77jkQwpkNyebGyDLfRW\noqZ0ORxSn9HPCd4s7xxX8NyMOpiyP4wcmZ/wjOQirMqZ8Bc/qE5FK+mWLB6a\n/QcJ\r\n=3bf6\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":"500856b2be239da7e2d0aee2d9ba9c198ff57a5c","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.21.0+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"10.21.0","dependencies":{"@jimp/utils":"0.14.0-canary.904.976.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.14.0-canary.904.976.0_1593447689925_0.699090644284053","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.14.0-canary.904.976.0","version":"0.14.0-canary.904.976.0"}