{"dist":{"shasum":"4ea1271ae6d66c8204d7edcd7073d72b9d430b16","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.8.5-canary.1.b147e81.0.tgz","fileCount":5,"integrity":"sha512-54L/QrsdSmsA/nfLvOPQzRRDjXHsVhLRSt9H77Z4+w492vFLQPqrj40VJIhszad2sCOmnST3iZoqG17yXLnrrg==","signatures":[{"sig":"MEUCIQCHUruolRSlhRo0qXK7fDheI2UtU39W5VR7Pv6lHDKhrQIgRYXEs4Iwd4WGSwlqPOdAxqzQ2UT7Uet4M8MRLamC49A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdioODCRA9TVsSAnZWagAAPmUQAJEe3RxKfIVIpUixWOdF\n6GwrqlTcwi2+QSp28yXq6MMS3ucgVkWqleS1hrIC0oYdwX187FohPewZ7U5h\n4GBTDqZ31dXLp29VOB3u6EUSbWT+3WJ/dsylU3v0A/Mn3kdrhaUP4siRTmXH\neDUmL86KJxCvDTWOULWAnlQ0agKTR5/IwznC4XWel2cigzoDrmKhINPiz2ox\nly5pbgKLbt4W1Bnp9vmXgBX8agwDiXbvMMbWKVCIq02UtecFALJjp9tuIkzQ\nXRg84pJ7vXqND5OH/8hXIozp8DebSc0nL9MRP/KO1yfGX2eSRXK1KIWQGGOo\n3Xyj0E52NVwvwm/Li3lv2h5wYLKnLBHj80QCu1hHesPT9+dvbBLaKo9o1c1p\nU2pux+vAu692gzPEedDimps47bf/myjeURUXq8NZ4OF7g4rfl4tlBVRjNPvf\nLHGVwu1EIQa5tdZWzFKmGKgBHHPkfLS+3B6aQS5N/gruAAyfysCPPuZQvd3N\noSB4nYUzZRRANjXqD3ScZCty2eXoY9+NGrSBDb7iTL2mhVnxCFo/bYpi3hmL\n+gR4A2Njq7GGLUhVe7nBkHKVnuvxLPOSh7lX4P6d4u5AZLHl8NYPbfR8tdbk\naAWudNyDGP6obiJCE+LFTNJ3GufFWR7FiuKjfXl5Q4e2edU036iBa9cr2M43\n5PZb\r\n=XjrI\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":"b147e810972b2bba9bea4a132c3026ca119832e7","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 (darwin)","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.5-canary.1.b147e81.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.1.b147e81.0_1569358723194_0.45157722018526725","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.8.5-canary.1.b147e81.0","version":"0.8.5-canary.1.b147e81.0"}