{"dist":{"shasum":"207b86d6a11b1dd6f7f4877721c576e7a4c41d49","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.984.1126.0.tgz","fileCount":10,"integrity":"sha512-Z795+W7qrfvWNrPntTR0+Q28J12Ux4GmAQD0TD5PG7wfXrK494iDchVuoN+EriNw88MJ39jEwstNJOYNjKdrfA==","signatures":[{"sig":"MEYCIQD3zKbvNQ7Vn1USySxEAHU15WfOCdkFhBkh8uJRf75WIwIhAKecNAp5jK+xMM3yKBSmQv68UY7dCQ4gW15mB9Lt1fhv","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\nwsFcBAEBCAAQBQJgDwmNCRA9TVsSAnZWagAAiDIP/20T/QvufJJ1Qq9uv5pj\nMIS9kRDF3iSZTe8Xv7VHvd6KOmG5ZCVU6Kx3ty2ZFT1t1zoonmk0CMSp3BDC\nSnn4ysGqDCNN6KcygrXMtA3xGLy802ha7u2HNRovYhUMrUQ5I8B4JBqXtHQh\nBieZ0v4aI+mmjrjTkZ66wtpWOM4PF33l4m3TJphGHIW6bU0OWxYTo1iOv6Sh\n1ZS5cPDgVMkiBi82Lu5sgGGGbhVBRV5ZXEx0SljQeIemnKdxvPgseS5LPIKX\n0uNp2w4x3xeh8wemDdt7TIWz8phrYDFi0uU9Pb8fyVXfTILPGu3lM2uvoVag\nnC+eBL2J4GYV0ej83rxhgCSNPwF4wUY4u5J/B9jo9pVhnMGQQU6Ynm9nbjcx\nh01ky/RY0mTAivgkCQ8Kfh/8rbw13yakUmphDVXZDPIj+Cn/a6XLgXoieE8L\nI2f/bEQQbWZud4wHLhCTM172OHj06Idzyd1ThLERp5sYnQivEY1RH5K6dQy/\nWJQXgyUrsA6oHxyLvVZ7G1+dSNjmY3ef2fjO/so/ppFGy49K/TenmsZfJhQP\nCV8jYoEssHhFCh1IBKc1Do9KeU53Re4FvTU4mbt/8rBz3gYkchD3xJTXUxqa\npP0vyVDkMnSrSKkElnbKOAzCh4+u+8XXFJg+QLJlNvwIGFHOuP9jO3aZchl0\nDRC3\r\n=bY/E\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":"3bcdc74fccc1ba21a777d476208773754a545393","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.1+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.1","dependencies":{"@jimp/utils":"0.16.2-canary.984.1126.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.984.1126.0_1611598221308_0.031809471130015865","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.984.1126.0","version":"0.16.2-canary.984.1126.0"}