{"dist":{"shasum":"201bff6bb512eec3a291a171240eb67151ba2632","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.9.7-canary.854.725.0.tgz","fileCount":10,"integrity":"sha512-eNKXugeORMMr7Ccnw5SfjtdvILW3rX4j4s/qeDX+sPXGs5dwc1vfvd1S+/MBZRLPS4EVCy4KU2ObVpd/VNQg/Q==","signatures":[{"sig":"MEUCIBD7fuZTZhgPXn7QPB7GufyiJzrrP9UjstZ/LHP8EACsAiEAm6F8ufhTVrD958PWL4b1dZM4Q5oUzSbbxr8T631gIto=","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\nwsFcBAEBCAAQBQJecmZfCRA9TVsSAnZWagAAuwIP/2RBJ65PN0D8Rz9x6wzK\nhX0gADlXzs59MsO6RlwlZApYufWIem2OKPxUBhZEBxgMXQaqyXzM8KH3Tc8o\nbMZIU3pTqdP/wtwJ+8seRUR+tnIaP8eYZVUH1yPsdrytN/5XAY16bhgA57Ok\nFfF4N+/IeSj2sfcorxjB3JSKS5Ba9Rv/dLOnsOoSjl//hNtPKpplfAwfIxl/\nI6WUAjFwiVjGRHoVpczL6s3rm71/rQQLOOyX9YQhouhAFfw+DgFASRCvjKpZ\nCyujYmL+cf5uExqt+OX3jHkQklEr4Ew9r22vIhgxf1lDautKWM0LzqWtK/kM\npz3rIn83ropbLRTEn7m/Po4IFsGiIJ07e+8bciS6SJTI8o0MdGcqADcIszdC\nUiec9DMAebdnfQozKIT4gHjcxwKbPBThXlnQ90Pa3csZD9ssHNc1uxnrBQdL\nXjn4fABwBZNGfNPkRodb6NIhFMDod4mxiiHRY2XQQqi0QS6pE0hKMUrhxO1W\n2SGvXjdig0NCuFBvxTFl964NyI7q7NtNEcLrA2OrRU0w3KAFpHK8WNJZrU1o\nDJOZtmkfNK8BtbGRJ2iOx488gSYKRTdK7czZwvdRwHNAEmxNGw5Kd9yPFlFf\nxoybcO550wpHx3Aqd+jdZh2iddkHjf1cKjw3TMnJ7ja7KZ8yEvgmnCes7QeU\nHDTx\r\n=JQ54\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":"f94b1383a55f945130aebfa1bdecf8c2501306d5","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.7-canary.854.725.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.7-canary.854.725.0_1584555607947_0.29358858267910026","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.9.7-canary.854.725.0","version":"0.9.7-canary.854.725.0"}