{"dist":{"shasum":"8dcecfaebffc135fbd37bfd6a97ac63a483ec753","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.9.6-canary.857.681.0.tgz","fileCount":10,"integrity":"sha512-hhcqN+UafruFkZ4ClEMJPTKzThj5O7JBShxX2QRGlUyBfDPKmEh/9YjNGfVQTDZf6We/UOR09jt0i5XWv57E3g==","signatures":[{"sig":"MEUCIQC0V/wzT87mjViLlp8LzafH5GaNU1/X4hwGis4ZSHw10AIgGwyBpNpVV7TfFUdEBXOLOp//b9J+m/J+WxxLIHteXYM=","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\nwsFcBAEBCAAQBQJecltKCRA9TVsSAnZWagAAwCAP/2uqUIIpyfVd4bYdFVlN\nrd/Epmp2CvJ2zgcLXLP7VDqtHsNW4iR+DllsKtOxwxuJMpGm/KPH1QF/Paju\n1v5IjH5jiVODvY6DibPp6WeSvrjd8HU0PPLqkKvyjKoMyTxl1qZ1bzGeBoKG\nYPbtluMK5pdNVQSIjmXFLOjkBR9c6oPiD9bqVBGcxjgJl2vPRvi5jxR6ZwKx\nt1qnFWlzIq73nY3XrQw71UWayz3ck7JR/ANrNqIJfpdOoPyp1S9CvCvXnEYb\nMCm2zJ3z+7tQzCwVKoeAaD56Iz/nJGuaSnFf26kJktGDcMxzJDlwhN/lGwKv\nr/6QjxPEpaWRZ0A8yyJ8XjnTsyQr/yq9eEY+D4Pkvg4w40xUXBh5E1yJHqhC\nkhIR7AP5MSGYjpWhu+lOQAHgSfrQBj3JtmsQ7K/3MgJJzyiB76WdihVsnFZZ\nq05mDB2ZYyNb10FAh/Lpmlkh/eJjA3MelBC2XyXgMLQLz2TydslkTD8EPbN1\nkiqk5QfLIC4RWO8Tppw0suksE5NCrFp3KZ0R6m3tvmx8XoG+4Q43xFdoLD61\nDQcLgqfKTh5KgQ8I7OeQsGvu922Eqylc8p1TlhlHqqI6/D16rMpO796i5hYK\nncQNNs+epxk7yxuYPDUkDs6ecsXDSIqpHQvJOIqHfLDtL0j8Wu00R4eLY+e2\nLodg\r\n=i6io\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":"002d4f41ee10762e19853545cdfc08427f748303","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@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":"^3.4.1","@jimp/utils":"0.9.6-canary.857.681.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.6-canary.857.681.0_1584552777207_0.8170246152329514","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.9.6-canary.857.681.0","version":"0.9.6-canary.857.681.0"}