{"dist":{"shasum":"fddebe72288087df3698a3a91c4a5fa22bba009c","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.11.1-canary.891.908.0.tgz","fileCount":10,"integrity":"sha512-PAPi/ThOCf6MHVrjNL6kszh1gB7agaV6XPvWtXqPXa9az/85daC1vd7nuulUuHpAel1YKzVoUTakB7xbObrHbQ==","signatures":[{"sig":"MEYCIQCGUH5/GbckD5CN7sJBch8cXmnWWIIbNDmE4Suj5JpREAIhAM26pT1zlr7ljxoFCtMDkvybLgdCRy3x+IXuk3cMCFsj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewC+dCRA9TVsSAnZWagAAM/kP/2JxjHNu4T4inJJcCdfR\nxqL+nlqUDNN106Hz3wHmhE6mQFm78LKae+VwlFOUvmv4HbO22PZx4Qdd5kkJ\nr1OKNq2yQc56yP0+Nvrm8WpgOyLt3IyYs+Z9S+ilGjKWCIWTM4PJolCbGID2\neU16pTIkCeh75ayXDM1mzovswXF4WawRRc8agiA7eQnwqOuqHSSO50nmYaDH\nnv07GPKzlAj+uoUdfzeeTcgHCNkLQWYMF8RGWG0VN1O7PaIS889nyVf9fMkV\nrliBkB2S+dVmDW+BWASlcyEtEdn4LUlFajF2YL1JapoH9BCzE5iAZstVdpOz\n63NOqHT3/uLJUC4IY4pAVw5r03TKADV4F1tuGLuFu2C6GmN9uPQDephBeNkl\nRykBy6AjVPiASuPSbEvFIV/U3muWZTY7fbPQ4pfOkiye0AVW8WxnDP25Zxfr\n0W9yUfAxMWacj7dBZSbCUjxrEyiINbvNvKVcD0llMoD9EKXuW/2mGCAAqcUm\na/rVL8vpdZ1clPKopiBl6GyEi0YyQG/aKoxc1bsa3PCvR3z0z6zuwc9rs4Xb\n9ahPMnBGlfOv8SzLgLBiDgSNvE/3gwpnRNdRIEI2jGhF2v9lKeDTWQeedQPF\nZLtPivCrvwfGJ7NirGSOYa3D6b6edYDpTaAz7s2dC/kIPfKH43/owOafg2Jg\nVbp2\r\n=vd7R\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":"8fbf0a27694e699539d5281afa06770516a5cfd4","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.20.1+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"10.20.1","dependencies":{"@jimp/utils":"0.11.1-canary.891.908.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.11.1-canary.891.908.0_1589653397451_0.3428914377142085","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.11.1-canary.891.908.0","version":"0.11.1-canary.891.908.0"}