{"dist":{"shasum":"c37adf445eda6e175e778869eb6aa2641c8de0e1","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.9.9-canary.867.792.0.tgz","fileCount":10,"integrity":"sha512-403O7fyTc0T49RPG6sTf40pPH/7GatOMNBTQoYFd0VGCkvNOv3ZpHru+/WZXe7SloReRBAzman4uIgOwn7RaiA==","signatures":[{"sig":"MEUCIQC4s0JwujUBEoKB96gWH6rEkQHsJM2VP3TSX1bbb6aCqgIgTARUwqt2h/IM00Z05gE6epMjz5jiyUumPMZSJfC+q6o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegSU4CRA9TVsSAnZWagAAgnMP/RYCYn+ria9jRpPbx2U1\noVwcb3VniOsOw3caGIPRt4lRqnwhrmRcKVnTeLAztX0dEcBhrQ1PZDBOliK1\nN/TyTrZS2IcXa8GKcz5Hr1xJEVWWC90UBYFn0PoBMDH5JPirh/Os27Br++9P\njYmh9GBZKSaZzPiKb3Pz92NdXkHuEy3WXklFn7BnrvbfU7wRnd3GqtMj9kPO\n+erhH7UreLY15o6IY/Ul9+JNiCDkFMA7LtNVcHNT1zpA45BgXDIJEOhrtA0V\naQ6LsjKQR0HcRaHB1j54tTH38s0h7DGCGlSkg/0C7e60gsj1ZvARrSutMZRg\nletVRak7O55G0sUCxk28TlkdBMce1nxycjHhPsx5qwrvFgHXUe92tEJq3sc/\nt0672yRmBgMifuHjiZm5vqmmbE8eOmC0MuC/6OJ5XQW6Y/WoOA2Fl0qKbNMO\nIcMg8eV8VRXRYkmt3HtmXsMq7dMIfW3gcP6k/+4pk4NNup+prMhzXNI1zvMq\nzSDDkTbJAaCL7D7jYAIy+AtObEMP70YF8kWql9APQVSD7HpOW7z4k7Fmep+s\nl6f+u9ZvCvoOM+Bza602/v6KrE0pzUrM390pQJO/EARg/64UKN2L8zYecXa9\nXBjqJ0sU7oVBChXE6vftzcppxYlfDGjKa4rChGztyhO0X3lO7UWktp83NwQ+\n/H+f\r\n=+0NU\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":"e05689ace8f60a7f4d031924f06d8ccdfa5bd05b","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.19.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.19.0","dependencies":{"core-js":"^3.4.1","@jimp/utils":"0.9.9-canary.867.792.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.9.9-canary.867.792.0_1585521976457_0.5071468192433806","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.9.9-canary.867.792.0","version":"0.9.9-canary.867.792.0"}