{"dist":{"shasum":"918a1d9b7291a9e1ba1bd8a8a9b756f532540a17","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.2-canary.1094.1345.0.tgz","fileCount":10,"integrity":"sha512-G548Uu2VzCyHE6k5SAheACtDzTyBD+uebpCidbRmTgP8DoehXxlhvavETrA9eBMLSbmEpDGyesPOYloSD3Qzjg==","signatures":[{"sig":"MEUCIQDK5j0neBbJ6BFDg5Q4tcrhG4Yyu1Fp2pC4E4xmMFg54gIgFYDYEO03XPaDzxGKxsdrSCZ9/m2VO0WunQorfz4y6ak=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6H60ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqY/Q//UHyzCh5v95bE8F+1JISOrgQHEtbAMUkdBjnuWCnvwEQ8N7d5\r\n3EVmZslXOopmR/cFYp7Enr/PpyYeInRpdIHkqUM+ExfIXchQ+ncMsOEMt1fm\r\nKHM61ooz17RbeFOymUzNxoB6SInQ//FhQoAI5vnWLm9/dsX1L+1WC3/SINiu\r\n4Jl6sT9bvZuMqmyBgApsJPC2HZkDH7qQoYTBsVYS6HocVBIRPTC5yMpw6RM+\r\nbreDGwF3HG0sLiaIox/+6LBvb1Ixs6k/7EvzKowlAYcqdgIzYiC8TAa2aW+s\r\ntBVrNuSJlrvYqQ+rs15LrRm4HA8C7UojBqpaLDADW/kbfP+OzfO8l4FdxbvQ\r\n1ubH5IgURji8RQuQDNhPxVb/YPbetbmf2F3YflU4byhYBsS6alp5VMl8tVFw\r\nwEga4CZjIDAzrTCVPCgyBqtwn92Wk8ERAJK1uW5wSMaM/D1cZU/BMfwMzPBO\r\nTpGgNCqAv1sL34Xa6R7oF7GMzb5/c4SHcZEAB3HmzoiZ9d6fbIjmfoIF7mh/\r\nfO8/pu0gY4vFB/vigKCdxdMZBQPnK8AIXwPJ/sOmvoTlCp5jSHji6WlKNPZs\r\nmFDX25xfMqkZCpJ5gH75MEt95j5fDgWWNConTcAqgz7dUB8iDLfYW+xJDiWf\r\n703E5XmOnr8lBuIJH8rG28TGDhNMkGmb3aA=\r\n=Lfsk\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":"09cfdc66e8bc3c77dd0514fbe3f23e97fdf0f969","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.1094.1345.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.1094.1345.0_1659403955864_0.2972921370987307","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.16.2-canary.1094.1345.0","version":"0.16.2-canary.1094.1345.0"}