{"dist":{"shasum":"193fa3d66339e060c3eca2fbffec5bf733077095","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.14.1-canary.919.1005.0.tgz","fileCount":10,"integrity":"sha512-PMlo2ZcJfSb7ZZFEeBV5qm7hmHDUX48in1mmUW56quG87tAgPFMfOYiAA+EEhrSd7Zw3evtO0Shqt21HEEw6uw==","signatures":[{"sig":"MEUCIFED9H3mztmQNYj4WSZiGnwbR4tN8WMsH8+IZjZsstomAiEA4I+3+wB2lv8vfl9pSpSu+BseOG6W0VdywCMaCjUKvwk=","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\nwsFcBAEBCAAQBQJfIrRGCRA9TVsSAnZWagAA9CgP/0f9+lNRv8RMtjCnA3Wa\nKePjf5v7RRtx9KrPycQe1JEjo+7g12bQ/SEUHjW2ohI3coDlXQA2j0nJAxiJ\nX3gvkUEaXoQK1Vcq1uopDSg4H3vkda2lW5ODIVDSF+8++F8ciewTHJyQe+YJ\nzfvq5cw/SKfGrb+P5iJbI7809j3k8wz/342R7BqaGpPMLomaI84F6fcns+pj\neyq7K/ICRn3mwIVhmU0VXrKTuFTaHnO2eztzmQBF6YmHeWF3oFSKSZMxPPT7\nI0UZllpArc2m2qSn90854/mkR55rGZbXEgbQvioNJEcKrnNy9Ib3BIZd8fLc\nqa8c15AnNWnLT0A2xajteysZhNa2NaQjTxDzM0Fd6JmVbAnF391Cj1cBkYbe\nEFT4Fc9OT73LvebLgrPzwMTj3pZ11IMgayrG4xaht0HDhe/qPSJQ8KvUL7S1\naFrDIRDuROGr4A9TRsquhj9Q5XDx72pG3mv/Epm5LMVRcTHIFdJHLOg5WV8A\njggecCMEc0NTVVOm/YarP7r7pp4qCzlATRZWkCAhahKjQIQHmuRLfsQDXuKo\nx63hxA6LkywrDMNj64MeWo+07muy1HMYeXna8JXyRC38pFoljHNwAfHZGnB/\nOcnDQnPMICDv55EQMCGwjo7n8odvYCs1/VsmkAygZzViwPubrT1FQFmsQ3I8\nP/f2\r\n=0Q/A\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":"4e997ab650cef149810cbd3df60cee4507f588e8","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.14.1-canary.919.1005.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.1-canary.919.1005.0_1596109893578_0.08283653530991142","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.14.1-canary.919.1005.0","version":"0.14.1-canary.919.1005.0"}