{"dist":{"shasum":"75ee64c2bb270be62b8cc9680b89e8bbd34bd814","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.8.2-canary.792.349.0.tgz","fileCount":9,"integrity":"sha512-BVj8jrvD0A4xSmxj69silmqL8BMG2Oqyoga1QkRDEFjvW1pxv+K/PRi8Ek0bRIEBlXDtXSZXCIpyxmLNXDDNDw==","signatures":[{"sig":"MEUCIQC9j7clYtpvpGUuAhYcZeKZrDYuGKS6s7FtcTBxTfU6XwIgPZbjkIPW7rBBMtyd/ygDYQeHrFySNdoDmTibppjrGA4=","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\nwsFcBAEBCAAQBQJdgWewCRA9TVsSAnZWagAA99EQAJEwoNQshDXsgkL6AF28\nh8fkDSpkInJVKCiAffsAjxsZhQk5RD2Ly9amf9dpOHIQVg7B2qwr519sjsQO\n8z7ldn39e7HW/8rhnFOCx2E+3NH28V1eVp2ul/TmhYSEtJDxeQzNmOYG18oz\nniWSx7/Q7CmLpFq9UHqkjlxWK/59EKlhq49vSDS6cbV0ZSoOB2AIz2UZq8Hi\nYoodBtPunetre58cEYgk3GgdRdbV4ltUexvPpFS+25sMLYqKI5kjRorEtl/N\nbiLvscCqWQWTJfKcOvL9WdKimpFIua8uyd5aJ3uVDT7EZPRHObX3E3awsZWU\nSdvJYxirAfVA7qbZNbHKpJH16EOH6LHL9+gDKU/+vfB2XjLgcCJi0XWL+Bih\nVoDQB5+F+qJic8+WwuoBQnxOH19al5JWkk+14A3kGvYGgDdY+9EDH8am6wq5\nzMZ2wU+QI5gglXvWY34C2NbgBNXbHQ2W2mGDuSZYcga+GyutCgPNc9OyFyvT\n2UTXC19B+TbsXObSk0PzWZVp8nV0n3c5tb1/tnV5xd3Of5OFoeX9tF//bkn0\nWXFgxHyL9wrmUWEF+dEaL+SGjQGGB0MvMp2WuZ9sT6irRNG01T36IrSAvr1f\nOcL2B84+FRLXTsSBOGExvVNGzJuuKS5u/Znm1aC6/QT9GIdkJSOF6SLWtNo7\nd9o/\r\n=2n7d\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":"c59bd6acbcca0653ca442e8be2e8aba892a7a0ca","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.349.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.349.0_1568761775855_0.7022267244541927","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.8.2-canary.792.349.0","version":"0.8.2-canary.792.349.0"}