{"dist":{"shasum":"9074ff9ad822e481afa6e11e5691a1f620a3bfbc","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.8.6-canary.818.495.0.tgz","fileCount":9,"integrity":"sha512-d9EM+Ti1LaEH2Gm4PINC8ibBLSwooyygWGLYLywg7V1wfMF5tVmPXabQbR4sGgnpyHusbs4OnsPq+Fqs8CRIYA==","signatures":[{"sig":"MEQCIGn3zUa+VFTB6SrNjI+ZAsNPzelN5YT6nU/WKos1arwlAiAmx5v5KU62oPKve/GCUDK5t3IfV3TZDCNUIPSSJONi9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FyICRA9TVsSAnZWagAACZ4P/iVVRZobMCsyb5MbLwgu\nsiaANzJli9F6C+Ip0myfDbdT8B6ictCCNSCVAwYhgRAhFvfZgX6eeBq6ChKY\naMNnz+C6vp7HDq4F+QNkaMAfSmkeBOgtP5YSr5vL7nb8MH7P2tdYoEd0I2rX\noTYWSQJrex98ZDGe5GNeDsuJsSyPgYQfF4mFWD7hOp6imLQaVFg+XOzvJT9K\ne5UvONzJMlxv7UrZx6MD6KHjYXeM/UAXIxp254Wq+6CbOKtOcku7njIHDEFY\nmWK9qByNsvh/c8Dm08msu8UyD3WEMmjPr39pY8ZG+5fvgycXpY1Uf51rgKgh\n9JVS22kEOhKKh2AAPMu+30Jm0EUMjgff5nV52Tt9DFe1zb9Rhn2aq5QsZ3ew\nDo8IS18tdhxuDJUfXijhv0ac846rjF5Q0PqLZYuaJAMz0kajyln0Bn1rDTR/\nEMcPDz4XueaeFOfzuwi2rUNK88zLcQcuRNc0HmrEP2anFRZHHDMPmcxophhK\nK2OGNpW+59T0oUFef6cnuSLjvMPPBkp9rAXcCmRsYXxD5BHGgarfT3jfzodS\ndW0Br/A4kxZdV2HdZVUhPforkbrCX5ziLsY4m4i0X3laa0a2nwKl+vng6FzB\nThAOlMLsR+0QxyzVGA7J2iaiHrSwEje9vcoIJWznq+VgPMt/i7BZyfQFdlg9\n66Qk\r\n=vW7t\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":"3b326196faede3b9d88e1e9a37305cbcba7151d8","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@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":"^3.4.1","@jimp/utils":"0.8.6-canary.818.495.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.6-canary.818.495.0_1574198401353_0.8644558067988066","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.8.6-canary.818.495.0","version":"0.8.6-canary.818.495.0"}