{"dist":{"shasum":"7096bd8b85b3e08c07f5f56b02ce40c3c042f8cb","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.8.1-canary.786.242.0.tgz","fileCount":9,"integrity":"sha512-X+cBCe819f8tQVm1RWE2A+hlaPBkR89WiK0U3254JzxnJIwpj4F/MfL/jvfGYU5LvnDTRmHiOFCZLRor3EvN4A==","signatures":[{"sig":"MEUCIGxUpybTOqCMvPDw4kOIoG+W0OxFdbvOHM8qpZZLak+IAiEAzk472hZkLQqgY+Nc5Sb1bD6Nl0kBX5iF+JrK76V8HFg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdeD4fCRA9TVsSAnZWagAAJIcP/jc5Y2O9R98o+jk1wP6V\nJ9fgIAmhrXzIDTx5PGleLWNBitesWVoj2vvUFv6fXnlBOJJikr3VYozcoSwd\n35fL+EhkVBPVHsBbD+nf8PlLkTowzFn+5b0lAXpF3QNGaqbdJBaidlZCoCbl\nIiSiVDCDmGS3O66MDXQVCvoFE7iQSwFWJzyfCnJn+/0ZNa6CTQjtM8TwRSFI\nI+eG7O5v4GrcPngwp0zN1ffWdc2V9c2bJjLV5jtAU/DKpRq64ov2YRLyjxp3\n5vQHxWCPK9vwJkDD9JFco5FC56x684UVSwNYC5jybIyPJo8OKMUKuBrGc1E9\nGNRtY65UuxSUjssKW2OuYomi7X2pBxTBaQK22H5AmofJAzEBb8WEBVNbqXpz\nVic0bl10xme8QSn6/kbAoV33xFA/VejyqSu0C9Nkk3jHy4GNS8aIkBcXB5+1\nHaoKmIgVkefdUlefKpQidU3XNyMuGM9yxG9z+tjfJbVbwo97eBW1Z+vqM5nL\nmB7h939GfJAycjeSlNWOWfQpRb1vtCIaBIW9qDA+n9pKy/Ro6znuUWK5lf/u\nSY4uhloMMHxbcCy+9SRJDmbs9srXo/g07nO/hFHr/pSIpLIS2yCK1+V9edJG\nu3bQq2yFS16faIqMejpTgugrZVI58hy+61yG6zfxtUtIvge7ch0G8A03vLFz\nXbXx\r\n=abJk\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":"688195a6958d089e764c1cb3a874b7f7e18fa5e3","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.786.242.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.786.242.0_1568161303997_0.9698954229905681","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.8.1-canary.786.242.0","version":"0.8.1-canary.786.242.0"}