{"dist":{"shasum":"b66708ec89dd7b650ec7a8bf0540261cbc0dada8","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.964.1101.0.tgz","fileCount":10,"integrity":"sha512-5+zYbjYIlRphrDrhl1L9mNI23YzBecEF8nyy6n6y93+ramuz9VeqrE8SVokZ5EuHYc3Eb1P6zIxo3IUnLjFDOQ==","signatures":[{"sig":"MEUCIQDWRz09kQBS41sshGochX2aS20asBwFlNTM7btjho3CFAIgBUAK2k2PZP5lEzWh6wSNYyYW/8A7crVjNtcBLR2Iyh8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvZyJCRA9TVsSAnZWagAA/6wP/jLF/W2u4nH3HJGMXbtT\ntW2RsOEhGEu8bwwjvpwiIK3LQQrU+BmTJkyoEX5yEV5nPvX7jGltpSPyQ/Ju\n3zXyD7zTCJMs1sXPYDRHjOOvzWxFf21n5dHCrUyxQ5/vR28HOKqxxFT/+6kX\nnOBoifiiTwMSVWL9b/z/hOi45YcKyv4vXxBYvtEbMEHAH0h9twrHRh4EpVnl\nmhQJ6VMU7R4BAb2i3tuAaRngYDRUyg4eRAN/nW3Kgx8BI7Tn1Obm9pIeshzF\nYsd7AyrgTQ41gr8hMVbqPNfFyYIetvV0LCwrc996eM5lG49gTtT7ISPEjOvF\nA5ZEoNXqbbj0za7N5fyEu5dOaRBuJ/otNaz9Yl3BP0Hs2Wig0tgiPJzQFz+p\n8IGaMgEX5UJKzmSiKz8ATdtVCYYXW4HnSkYU9JAJrFqgf6wo4hAg3sgV2S/0\nAu33lgUtP77+MHxE+u4o3DGW/RQ+/qEopMXyFeFD6YUAN3gqFMAJxqpiUTdc\nwftetX9eLBeac1R2yJdsLlLxgihQql3kg6mPHSNZrB5ANywbbm1JR7DgBbv+\njnmHBeHR4eqMe5y8al53B9MIrVbweYPumdR+8toKIho8w0xgyJFYYh8xweFM\n2c9u9Qm1Kbvqom5vB0YsuUcnwRnRoEpqPxGvAzKPeHZK9C3CbWrfRy2TcbhM\neS5l\r\n=h0PQ\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":"7ef04af31c8555cd3201382f3209554fa6bbadb5","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.23.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.23.0","dependencies":{"@jimp/utils":"0.16.2-canary.964.1101.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.964.1101.0_1606261896645_0.12505488515626273","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.964.1101.0","version":"0.16.2-canary.964.1101.0"}