{"dist":{"shasum":"9bcb6838494797aa355197f64adaefe7abf4c507","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.12.2-canary.899.952.0.tgz","fileCount":10,"integrity":"sha512-1M+EAUR6AXkNkGjnt3K24wAzTrGbYKlQu3zjxf0z4P7D97RDhVrJ527DxT/fTMqlIVhoMd5lc3IkpPz8DnSF2Q==","signatures":[{"sig":"MEUCIQCDCVZvxDJ8xz0Ko9/vUroZGv1XbHMRvvNg3I9eN3pMqQIgP86nXYzfsvhBTEyqXl/GsmM9jHUVOsuXNqXRYwALzOk=","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\nwsFcBAEBCAAQBQJe2dTvCRA9TVsSAnZWagAADs4P/iM6yK3e8DcR/Ujm7Z9q\nceHQJYe/vmJTL76bES3Moc64NdBWqc2eckhUAME9FRt2zNJ7ol59RiTCYg0v\npwptzuf/BfzgQG2WmnXfnzqDfe6Q/UxnbYd2vfkYENPp3apKXFKf5ZJpIENE\nXBLkzEdfIUNga92K9p5mRT2U5AdLBbMWgQ4nD6iEmbqLiQjWPaMMcGMTyqiI\ntPdZ0pv3IUKcKcQDI3xMXIWbyFRF7wFN557n0TgG1eRDjq7TSbnRqfsO807I\nOHdA4UtC3axknZeTu5m132zPUY/KqddddWaxZR+DGKN282tqAhEz55M0/Edv\nhFZ72UpQxMa2+rfqI/g27KaZanLJYVkHdT0dAMgX7lHDRHd8M9a16Qx4ZqfW\nRlM0rD22Pphn48Y8MRKEGYLm9oIKOo9XPhv8OxWLBqSrmm+XjfZsJpkwDoTr\nm8K80+uzuJrsBglJ4WlBTzxIQEuQUQA+5S0zvAnMjzPcVDz6Fv7zyLQxhoR/\nkURzBFomuNzFEpdFFG+RCtviRWJDSYahtWtyQJ9Nlk6lkK64PorpBvv7Z59W\nb9861wGsg+b7hN7Yl0vkJuiKCz/13f+nbPyVb1gvzMn1wxnuhEE04U0MIhAu\n/TSqrScT1kVO1NId646XiyRiRebB9sQGyXzhoR599P8LlEuFUW9Z3sQmuoTA\nP3c9\r\n=F6aw\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":"71319029e254af5900a70fe584994f086cba6766","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.21.0+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"10.21.0","dependencies":{"@jimp/utils":"0.12.2-canary.899.952.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.12.2-canary.899.952.0_1591334119788_0.9295506606587218","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.12.2-canary.899.952.0","version":"0.12.2-canary.899.952.0"}