{"dist":{"shasum":"7a5819bcf705cda45b7f80df352ff5981448ab09","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.3-canary.993.1592.0.tgz","fileCount":10,"integrity":"sha512-qSactiWE3l62JOGx+zKcf9YV+aNozkq5C3wzJlxtNfEetE/XpNHjHjzCU5YjHMhC6ng4SNxuk/rXL6c9XoO6lw==","signatures":[{"sig":"MEUCIDHy7KGpMReq7B13pS08nXF39VX0Kqwqyx/jEMuNiIzsAiEAsLR5OU0AxQ/8RrYiveH8qnH+KfQaiReQQT/p3p437IA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3JqjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmow+g//U3voCAxuS5/rV4VvLL3SN6Nk6NE702y0mifoT5WwfhFT16QS\r\nt5D8xDSXYsV1dnI7fXKapQVlSm/sqgSuxICEX3QUnsCHUZko04eO6ocKUTK9\r\n19Xddbznl7jdBeALtCIqBQpnhGBjADf2xd128xIljBIA4dWqyoZErKp3WAqg\r\nwrivnsRpriPTkBV3eWo59le+kZxXnhYlCp6bmpC6n3e75hZcwIR1FWDZPTq1\r\nCCIKfjqsJK111v2AYK99wq5bqdGmKVmjdywLPvXOTrGerB/1iXME9C0zaIhA\r\nutZ2P6AsnJNmfm60UvmrnUXxVxN4MbKheuui/V7PFL9dvahSVvWAqC9igf+a\r\nnG5+kAfw8LfI+hBFA/PURIBAfYsUbgyI0o5OYyVSl5NNtG91hXhKeYCXL79z\r\n4vmUZsm7r3J6SbLhT6SP/of6REAurigXD3V49UshgM2P6OVRm6kjpe/mwZyy\r\ntZ3tL0QwJn48peoXwkG8zPWkHIY0WoIXGGwqg+c14V9C9ac4OZl/aSJwf9NV\r\nRV3r9kQJYouVjJqmhLTIG+jmt3kIIXKfTxrUcsPBISW67e/B129dy+wtEDgl\r\nvWTBxSmFgaPefUdCAlUmTmFdTHCdHk1Wq9iSLFDrN84iH5h1LXxWtx1NW+4Z\r\nOdwfHMVMItZlhPlhr/PtgTNcg4VZgAS2ExA=\r\n=Zwvy\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":"944d160be95561140eae2ca1bd7e1403a08c543a","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.3-canary.993.1592.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.3-canary.993.1592.0_1675401891096_0.33881065582064007","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.3-canary.993.1592.0","version":"0.16.3-canary.993.1592.0"}