{"dist":{"shasum":"da2262e2c07e0d9b200a3626e6be010c4f620e20","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.12.1-canary.892.924.0.tgz","fileCount":10,"integrity":"sha512-gMXPS7KpaqjRCwYYcWlPl+XybFb0L3fZrg6HJNbTBi21Yc4BeO6n6ROdxm7HR8x7zaBPqEJNvOgB68l1V/s5WA==","signatures":[{"sig":"MEQCIBYktjozjZHr88CtMVyrTM3NZDNhFZ7JbDurZkn+VlKrAiAIzAtgM9S2HSlkzHXXR1E7nUtQY4aA/VjVsKrYOi4c4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJew3qUCRA9TVsSAnZWagAAg9MP/R4cIkjWMbCsIMSowv2K\n8jBxtZDnMp9XJAPUIGj+5DyKoWGS+ezw8R3QDGCJ8+jnPllnnfYTbVAScaKX\nrBpmg7zNLxPbAV/GRW7I7eJryjEbeyy63Xn3qBns3Hd0WzdzYF9Xcpod9Ix3\npdmuB/KAsZc0l/gi4ZfzV7tzMvRmjbIod3M60SZ1jw6ks1r+/YO0P4b18uua\nju0DaPIGnccSJIamPzbwuAC//42FUlo8QpN5oDOl7Ub3iIEUcGOatq4BdoL0\nKBbZahUNgu3n3fWtwXJbd4svHU1x/u4Ow9cxhvB873YLCPHCrMWU3xI/O42u\n8FOBcosKSl9I4s6owWXH0+jOr8FV9rtDpcvE17kJZXCKwXWWi9XmaVDRm9BR\n0JZQyMxZGW0TyjLeUeoLTdvuYXMhvh3i4l/RC4Prc7gMVCt4y2mbG3rFMoXa\n22pOt0adZATx9zJA1zrudTTjcKsd9Sneo1ATXII2ysNg2k6JiBejuzGnVc+1\n7iU1LlgMZMTkvOOpEJZ2QmlQ55X88qN96Z/iYTTAgQdmtJADdn5UcUhDibyh\nySIAw1l2x0kanPXtEDeLRchFFD0vGANlYHkjHKHxdR/jTubeOevs/MvtsYhu\nEeVzWgACznkxI3WvaUx1sjNlPf8FC3eneev9DwkSRIWEl1LkH0XcjGDVankv\nE/+2\r\n=xVjs\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":"6f877e86e4dc5817f4a8710a1dbf86a983aacc0f","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.20.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.20.1","dependencies":{"@jimp/utils":"0.12.1-canary.892.924.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.12.1-canary.892.924.0_1589869197547_0.8892945241637356","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.12.1-canary.892.924.0","version":"0.12.1-canary.892.924.0"}