{"dist":{"shasum":"e4af4dff8d03c17a47762e10bcf7924d0a98348d","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.8.2-canary.792.283.0.tgz","fileCount":9,"integrity":"sha512-5A+lPaWlwoeke9gFMrTqbRqa63aJzQryWlCqXfaa0ViH/sGp6c2k8e9VVdPGhGL5Vq1tlCMRR4A+hTl9I8fHjQ==","signatures":[{"sig":"MEYCIQCtR81K8eUKKKOwWIpcGO8P2bu97JqJnD0N9CtqhhFXgQIhALcrBRyHVGRGn2wblFye5/PVbNbrR0iy7Hp5DBWeW8iK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdemJ2CRA9TVsSAnZWagAA6/cP/3kl/br9d8wMTvs/rlgu\nJyQmBV8ZNeZwx8DiVDFqhBDKxsOwJuA3KFJve3LzvhkZfUT7eNbhjKFnlF62\nMREt2wZPJB/nDlp5nVxw8g++aGKrHbcRHkHjA5PetuUYliq3eMPhyGaA9Ams\nyBjBxy5C+tnVSfGDsrOsHANIg2yukzM5OyqXfOiF2rEmtaz1yFyC70bep7VS\nwT5ZTbQt2RwhrRaGpGRPZqbxaJivXcSBn9CBVI/LBlkV0z+Nvl8rlDaDN6Eb\nClWEMPWchmR6GoK31SLnEluEGpn87u3PGvTEmVGzH6CWKtenuMwpnroYKPRt\nA0y+w0l7gltiFWraEMO1AuX9IJ3xq4VkgWAuPo2q9Q3NlIgH/cWbTmoNcCb7\nfiV1f8UDv3G8pxcE+zLUMKPeGgUGlzHekMwMhVO+3+5873BflyoL1Jqizry7\nReOhXlKz1ZFbvo3q5msOpaExR+Lb7oQg0NBHM1ObcQElOhyabopc2zN33e4A\nEu1Zw8Q+l/Rskd2SQT0eJ2WC9XSYaQThAzuHc/A5yQ4UVFqg9ZfIGTbO/A1v\nH0S9DEHl9Fz3053L4R2Y/FG1jbyl+7UQfX7bdCaS+S88NmwVBxIMSjMho5ng\nxBU/iZmecVLJ5HDEavUhzMMG4lrO9tnTG7i8w28pkqsbDpVZ2OrJb9Vvnh1Z\n9P+J\r\n=eO3u\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":"72d08007f8ea0c5fe4de64e357948b758e598699","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@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":"^2.5.7","@jimp/utils":"0.8.2-canary.792.283.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.8.2-canary.792.283.0_1568301685448_0.10992320816564827","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.8.2-canary.792.283.0","version":"0.8.2-canary.792.283.0"}