{"dist":{"shasum":"27a43dae708fa546f91e2f6a30ccc7dfce2130e6","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.1086.1311.0.tgz","fileCount":10,"integrity":"sha512-VobqUSvhr38tcPK0NSePfoU+DNkpvqdW5gUdseV8AGcVSogzJPRybmm29kWIklR6250uuvQdPzlxR8ftFnHK8Q==","signatures":[{"sig":"MEQCIBg87fShRLVTz3KjRPAt+Ud8k7FWLkYrrWloHnODMKpaAiBfMs7h4tx9qjz+lCzOwR2xcxcZnWaHG2u5TZywA32xoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiH+5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrARAAn11CE5/8PIhfIVOnClJaNFKqaMFWFxKkZ2On5BEk5bkLtDzh\r\n+ndvSqJyf4cdWdBo1MoCn6CXIjhK4orZEUcoiy/DiFUUHMNWzwUiIKHkTfH0\r\n6yWcXqWYVtPHo+FxYbxHaoj40kMenV5C4L2g0YGVu1meak+ZPe4/f2/MxfVD\r\nTV8ZBAHSkt/jm5Fw+LJSFMVqXyHvOHbxuZz0rBR1KoBRYjgPW5qi6kgeN0CF\r\nwLPVHCf0hV1cfu16ZwAahh4ZfYmkkVKbhQw5Ykk3wgNwrXzkcGdRlWtUzxG8\r\n//zpA+HkjQTbflcFiCiuoMvlBsCmv7F2J5p2Pj160e9Gv4evw6hZFzzTLwjM\r\n49E7n4OdXVLEjxFtxxLw0aicLLDU7KUKxxp03KLrlmE7HuJBntwqxtHq3rIA\r\nG2Yb8FF6FVCcCPlJLNgtwPKWJt2i2rmaA+QXaRf6MhTqa76LNs2BjlC2quJp\r\ntvVL36PjXTYz2BKIfDMLz67XL5EzPAi+CPpu9rYey7Udfi0MD3+ZniD/e4st\r\nqXlKdKhG6biroPEsFvPoy0883vOpN9sNQPKEzKNSlc9meeFuO7zeguBXYPZr\r\nQ3U9Ko6iUx/VMACPnGF47hettrYVjddoIqr9RiLkcBgv0M74MPcqiFBz+g0V\r\nbrkL0mEWfKniKPuOVs7r6yxoDi+hhKXsCLc=\r\n=+2E8\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":"aa621bc47fa59f5b769cfb6ff2733098da613795","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.24.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.24.1","dependencies":{"@jimp/utils":"0.16.2-canary.1086.1311.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.1086.1311.0_1653112761765_0.5373442910957318","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.1086.1311.0","version":"0.16.2-canary.1086.1311.0"}