{"dist":{"shasum":"873d103c21bfdcabdaeed065d214ebf486adab83","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.6.5-canary.4564f3c.0.tgz","fileCount":8,"integrity":"sha512-xd5qyM3uONe4z+Ka2kY6Hco1M4JjKn1+mHcSioCLIiQ6BLLc5tZ7JGPolloC8cgIpNGM+2gz8PvGe6BdltW6Ow==","signatures":[{"sig":"MEUCIFIrNg0GgDZ9pMcU2VoepCbSy6/rLJMoguhimXwZJY8kAiEA0qNAXPu3tBQQ8uuW1FxuWT8Yux6/9uMuLkDL77IgQsk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbaz+CRA9TVsSAnZWagAA3OsP/3xCB/djPCjLP1NRPV9q\nWtshvznoLGubGCelRv90ZFeP8RLqJr04/ricaXC7aXLPNAgWLqL4OzIMgNJ/\nZKvdMpRurMz9PnNB4QGdISDKvAIqtblj+o79gZI8iys7LC569VXMvqjzLsF1\ndyUVQo9iEO62ukw31kO+8s7cFWNiVTpFz8YnmNrdPk+7gBdwXfXWSiYgipAR\nlCCgtEcIYkYVFHJ0hvGQCINkHW8gBXkNYgXxZRULdr8MGNTK4NnYd8ctNmnh\nx/J1aiJer9yXDNWI8ufxv0LNx/549RPAAQxlVZbNfhPY+hJvSoaXfMmhfhmq\nfmRJnxyyoMBQIBt/HPW8tqfqsOhN3CDhlEa+Zkc70L6sghjVex4k99UbKshY\nfpcl5YrD7VJVK15rYHrYRdhGJtZrgflN4XzsD21+bRKOl2w9hvgxs2VD20e+\ndR0MNYvXXI0UPm/eysG1OCOVVx/RyatHRKpc2+O9jPFeDSjA/8fWMYR5TVNO\n0Hwu5q/9magOxeIvIwOhR+sODWIiJXKPDJ7B7Kr/TvWqbEYoa9INXRNqH6le\nCj89l22LxL3JzIApXdf9nsh2CFRHKl9teEKWR/v3crLIieLt9kY1FJLQj7sl\ncoAzYTIn4/YQy7mc1pfeCSHPNU0+gi0zcGqeW/gh8GsQeM6ZYWxDdTOYT5wB\n8QuL\r\n=UOz6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@jimp/plugin-scale","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":"4564f3c577d6a6f44199f0818cfe6c0d24a9daac","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@v10.15.0+x64 (darwin)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"10.15.0","dependencies":{"core-js":"^2.5.7","@jimp/utils":"0.6.5-canary.4564f3c.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.6.5-canary.4564f3c.0_1567468797290_0.8675983464062957","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.6.5-canary.4564f3c.0","version":"0.6.5-canary.4564f3c.0"}