{"dist":{"shasum":"33d78acfc21e9abab39a478a15380c02663646e7","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.8.1-canary.791.466.0.tgz","fileCount":9,"integrity":"sha512-NEtzORBrMI7U6SmzgqIAkFzqyX+lL2z8dm8eNIIHi4J/dhUBJupnlUs5zZpIZzXGcBBJ3yTYovbAcAmdeMWz8Q==","signatures":[{"sig":"MEUCIQC+5lM+70nS6E6+YZkJJDyVjzMNcTxHsL+JSgEwbXWizQIgQOmzjRsjh7+dBTprnzT7JYJUvcXyik2+GrbsxCBlC+8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmwH+CRA9TVsSAnZWagAAe6UP/2GUOvaAeDOuGw6goaL/\nw8m2co//BHvaBVMFxYCjiNhPdiegPtHbSy1MNSSCygdXIxePfC8/xSnXKzFV\na0Qi059b9ZcRgvnr+bdqJtL7Mhg8P8EUSGjMPgaO3ZOHNC6CzqfMqX5YVwap\nACiPnC7d0WRWgRf0WilJwyirdzAZB0Rj4A2a1OGTFfHNvcB+RtRtV1e+OOEA\njxzOZPp3Sp0cCFfmENe5QdGWAqR1cK3CDsVa47DTm/u7KK0MXqlbQxb4R+Bm\nGcIOkWUQ7aPaXPFl/1kOc/pARfYbNdwqgHwS22w5vd9zL5k5vmmT1UZcppFc\n86GYWj5ZepOBaKCCGqff4DDQrMqlymwFeQnCEWDFXozv9AWe8HI289pYgpL9\nfQSrphNJWpvctNBtzk/udTpjKNULNs9PrVbL5HALxPzDMrSwzoh0TOs4L9k7\nBPPJWWbKlpzCn2dF9CZHlYWJHnx7GSe7YqCK99SmmK4FZEscUaT8S6T3ssNP\nhJgmRNdSRH6xd5z2WOvK8eko9qeGjlYB3fJNTvX+ata0rJq6fs/3k/0BKQZs\nRQcUG61COA7o/2QExAk8jVhIY3D1Kddl/25gOWW3jeesOlzw17JIWwlpeO7/\neq4ACrKvNEX3EsjOP702nu8LoUvHXrOg45SzhVMvHaNUa3plE2Hqm4PEyNRs\n/qvF\r\n=ZGd1\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":"7954b0296d1da7ae878ce21b114d831575e2dfac","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.13.4/node@v8.14.1+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"8.14.1","dependencies":{"core-js":"^2.5.7","@jimp/utils":"0.8.1-canary.791.466.0"},"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.8.1-canary.791.466.0_1570439678120_0.6136956036135479","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.8.1-canary.791.466.0","version":"0.8.1-canary.791.466.0"}