{"dist":{"shasum":"7292f257f8a01bec1345285ad13d8cfed323ebf6","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.938.1059.0.tgz","fileCount":10,"integrity":"sha512-UrAsJhzhXGtZCIG/YIvKgWR4ZZ5X0Zoes+8wgLZ8UUcuArV2RXOlPJMrFcKV9xudyNv5onEyFLWd6Swlp1Iwpg==","signatures":[{"sig":"MEQCIGPsKsLuTXzgiOHf3F8OVG76IIXoTQMxqpHBuWE9S8RGAiAuiwKhO6rkN9z6uFQZyZyq+i3rvL66p4lNEP6Mp2wb8w==","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\nwsFcBAEBCAAQBQJfVi5ZCRA9TVsSAnZWagAAGpUP/1JZt9rTmGxhwd/NRywG\n1aCFzVGBz9wIWEkvOq/GwdNLPkxCcxEy4SuwOXIkviTvXVnb5lpmxkAlaTQu\nBypRUw91nQ6GQsV7OAIbNfspG+uW8KeoBq0DmTlXioSq4x3+4j7BEfxzMQPp\nSgbiP5SSG0eaJE4O3KvOxvdl2mVwStxOY9/9MAdfbyHccyhSfRmjpiVhswtM\ngG2/v7oLjcNhPnmsGZRrK8AlBQ/Idw1nwWx13R4Z00Oa4WwJtFTPZFflhbBO\n0ff0hNihlf0u3vEw98M5ezkTsURZq5/D1E0JKNnkDT4GA5eEigkZyhTGfR+o\nywQWzx/zDchEYQas4/Pzhp4b82KaimS2T5QU9ovSjYALYC9VNkuWxjs9E0tX\nh4YO6QJWQOczW7iQWTfunespZ/QkvbzaYUydXM7FfU87xMgdYBBfP7F9777s\neW8SpoI+AM+zsKFIqTO7MHUxyM8IGmaJfw9Argd8wCbP6YlN8o1qNnRRmbXd\nF5lSip0xDSL1PIRyM1WQzzn/9c2V1pm4wKeoV3DJiGrapmGCZ2SzbQR9bprY\nR4aTq6s1Xdwn8dY+yGLbbWrTBJJbU9imJhv6rzCFxYJSl/9bkNwzuU2qpbfp\n7PiOdZKoqBs1Yb0Fj0PCU304M4MjCySFhGKLEI3hhGGddzAJ7XSsjpCRRlL1\nsiKB\r\n=T5Wz\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":"eac009a0e11a8dcc573ebbcb1793e49b8041a977","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.16.2-canary.938.1059.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.938.1059.0_1599483481463_0.7055192901688294","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.938.1059.0","version":"0.16.2-canary.938.1059.0"}