{"dist":{"shasum":"86742e705adf920a64577fcde2d66c05fdd76852","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.8.5-canary.753c2c9.0.tgz","fileCount":9,"integrity":"sha512-3+hu1FnuyS3BNViAoWtAdFiR6XRyY9ufpI9wq33uXcJWcMGeiAQRlwLCo2EoTDtMS3UE4llOTeVXED2icwj6lw==","signatures":[{"sig":"MEUCIDHvkyrNlLu63T7aCjMUheFJDiGERdbtNTwqPWBK03qbAiEAwaSejIy9P1gGCXUpok30K68fBhRC2DAJj0rV1kGF/Xg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdioBoCRA9TVsSAnZWagAAbpcQAIhCOcOfwAB/Lp5dC5IS\nb7MRVJABEJDhgWslH0LfDLsZDs/GIkDPYp90Tyyt/L69JBM1TtP91aISAusP\nsdkVDB1mKVYoaMleH6p4PlNIPvTxa37QbnsJSadAJLR7UBjwu4HAt0DT4Hre\nmKYF6s2pCECKL2FDZ81sNlvPewtygMwrTf9EW/D7mSIlvn9tg3qxviW6hW1l\nPo77mEy9/8tCxD2KYo4P2E1gaViL047J6vm2z8gnetNZTUcNPBSR1o4+HThf\n/VP5v57AhbvOlJY0AK4m38QlV7MwmvV7jrG0lrkiuiJXcp+iFTp8z6/kr88m\nWGs/Uycvd97MCGmBVq3utZGjGmycZ8UKfFhJaJnQau5uaJ9ftSVEHKRC2eEs\nxLx7ViRga6Vvvu9xcatIxsirrC1J0NDMELBtw+74hkdBjPeT87tWjeYzcyue\nOsn8/zRtmxvaaQxcmSBHOty5Mg5A+xt03Zk0chvob6V7ofT5VShXL7DSEJaM\n3U+fkP+izBYXBcS7F6kvVMhK+IMWt9vcD0BfEIi0ZGlrOYyHQ1/secMatB6G\nSoanA7bDV2B7WHNr7bN+Aw04oNDHFifzmHzs/TDxc3vW/wGd2a5Rvqf1G8JI\n6F56IceDSteyMkDN/ae5qaCuMiGHni4kC60coez2RqAN8DesZYTAYrUnf9n9\nltPt\r\n=akp8\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":"753c2c99505ea4cc87aeb1ac9def054b52a2e90c","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.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.8.5-canary.753c2c9.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.5-canary.753c2c9.0_1569357927425_0.8275298944835106","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.8.5-canary.753c2c9.0","version":"0.8.5-canary.753c2c9.0"}