{"dist":{"shasum":"05d5492d86d22ebc77cde64fc3a2c04ba3c73754","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.1008.1164.0.tgz","fileCount":10,"integrity":"sha512-cXeZFtXx51M0jdwPg96CsbHtdLe2/ajhfHZEHYqhoEh81dXx2T4zmgXe8XI2k/JD6P+L/cidpx5T21Un1sn2jg==","signatures":[{"sig":"MEUCIE0G1FzMzHfLZBdAmRycuyR65QV8qYDWfCTNI53ddvQ5AiEA2PN4wHYvs88D5/LCaccjGM5jPVcdAGb234TvF2/q1tY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgioj3CRA9TVsSAnZWagAATjkP/iBGYfoY909Po63921Xm\n1xZc+Fp+iZH7baqZJ61OGi3KpQW1WcGLiVmgKre3Zw4Z52Hi/etq2WGG2RSQ\nmDBYcs5n+UCM8VVpNj3d/KJjhnG93xYzurKb+XJe/ccbSGV5o7JMvB1ltHnv\n3LdaZDLL9T5Sautoh9QNMg9Oxgg2qH4bScV8WB26OWIlCwGBqy5Lol7C2TpO\nig80Fir7O5kt0PO6zajqAEurT3NA7jE6k1TqNLudWKlmoXBfl3+LxMAUfY67\nucH928M2R8zl6eFEYNdeuGhPq/dXHnhIP9+CzB6zxMmMlu/g5PbwOPpFE4tu\nBaarhCpoSZlEjbNGaqUS1fYv3T+YI6QcIMj1b55x11LZiMpBK4Kq0o3F+K6R\n222+WcXTiOq6bYioCL39ZpcPGiTSsz7wB/ZTPEm0zt2ai5g9ur+wxeVwHu8f\nZJlqvhzQl8bLOEUoan0TpclbgTEi7YPa/VchXb6geONOksM4nzACpm3AUV11\nnlH1pnvLHSjgwVYzbUhOI5vL2YT+PmvzALCdy1XadU//TSO1PwNM2udI5m6l\nRWgKeGdTh8V+u2mW+5BQ0h6g57G4roxXw8G45PR7OCQolBG4tADBXDtwd7q6\n/t3fB0DN/cdwKbQAa2BoilzYWM3lGfguLg6UEgDEtemNqOeK6m6MzVHpo+2b\ns3cy\r\n=7gON\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":"a8fa50fe330cb022abcd25d370b3587506c3691d","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.24.1+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"10.24.1","dependencies":{"@jimp/utils":"0.16.2-canary.1008.1164.0","@babel/runtime":"^7.7.2"},"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.16.2-canary.1008.1164.0_1619691767460_0.17595170531099225","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.1008.1164.0","version":"0.16.2-canary.1008.1164.0"}