{"dist":{"shasum":"062f843ac733d9487b78f0df5b0479a61e01446e","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.934.1053.0.tgz","fileCount":10,"integrity":"sha512-Rex1Oeod0/T8uwQIPLD2MbmyZujNB+bOFoZiLFofR9j/jdu7gdpsv61484QkDwD658k1st7oioCaRz8vn3JQVQ==","signatures":[{"sig":"MEQCIC6TQcVqq8btOhqae7n6CFFFkkRpyymwLHMm6tkhm0HXAiA/+FtFKdww0GayKK8d0hz0h3vLVv3hUm1lnvIYxSL1Tg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfST2+CRA9TVsSAnZWagAAUiQQAIQp0W3PWHaxhgPCD4HA\n05YbIKB6eiLVlfbSPs5EG8XvPVelv56kQcYkF5iXVYQmOmZSM+C1k/8H3g4D\nrcqdrn6QhC52mt6ZMwDEFcKrEnD4WnZ3tl30syCOqsQrUY15afS5S1EBmnb3\napHKD8a1XEp/CegIk9+f2v1BFQ3sQDh1scTD0dXXs3sEkT1RCt3SrXATzB78\ndjyzYS+A96TJQYqgSvx0V/E99f0AxmaYZub67tt+6aa7IbumRyrbxkesLCM6\nY5DPXXwXPlkCaLyh0x8tpT5TNR4uCJyrGePloDJOMHY5Ig3JJkWsJqcgfXBX\nI6vWwVGcgbNbOi/eLq6q5p1IqNXvz6c7amMhaadf+ee1t914MUI44ritH+uc\n6AjEfWHtL9SNAFx1wIf2R7DnYKo4aGXre4GnZaDJOfV6AmIvzTM1mI9DFNSt\nW/JK15A/F+mNZm1W4Q4Z5O26I9a/hhTXlTlxWN0MI4O0uUha7CPXRznsMx+c\n6idCiGDoMBrjxjH9UMDO3U3WgTBfMC88UT/7YuAcd85GVuBHzHd3hMdpscLp\nx28NR9S8+l8w0LGkmkH0y6ZSR0f/Z6QGLmdTp9e18/1hbQnE0lOn7B8icjbe\nF4TXcRr2Nu4zyEdaFHj+DudLe92Q1bDGuF/DZVT2MedKZOKHUsGyj1s4qhgu\nYjhV\r\n=/BP/\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":"7af955a9ed6dd3a78894ba5f6b4c893dab517057","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.22.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.22.0","dependencies":{"@jimp/utils":"0.16.2-canary.934.1053.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.934.1053.0_1598635454178_0.038958122423474295","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.934.1053.0","version":"0.16.2-canary.934.1053.0"}