{"bugs":{"url":"https://github.com/jimp-dev/jimp/issues"},"dist":{"shasum":"566538606041c2df93a767281c72714ddd8a8d4d","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.17.9--canary.fc042e5.0.tgz","fileCount":10,"integrity":"sha512-8W+Sd2Ot+faoUgGkhBKwg0SqAQsmHubh/Y7Pzx3q3aI64lsMaCk8J9fJIm7oaAY9ZQ27CwQ4KMFClRwJfU3E1Q==","signatures":[{"sig":"MEQCIFaHdCSKUINafmioOPcn1ykhl4uuocxquovHohrBqBGfAiBbl3loPHa/jIvniOdxQT2aUH18kyQq2F/1AV1i/t0GmA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3vZoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRkRAAi5j18N7c8I4EZSJEwoJz8QH9Yla8tEodlbnpGIWtSrEnYJVP\r\nrtx8Td01gwEUiMSD871TZavg/OspdbfTa31eveRj231eD3q/Z0q/mVG+4bA+\r\nFyX920eyU7XdAxRe1AIiAcyQ3WONCSWDY+ri/8lmLOgiMVbxbhIgxhWEvlyX\r\nR27hP2xbKzT+MWrgYJd/wsc7xuPRb+wFrZUWMTr70bVeOvkRCq669u3PKlYi\r\nf5WBJ068hfF3TXWaKwkBHmRGdSXlCcDl039ylUNtcvmMP2jOEz6p+Xjwmlgp\r\nhB4LM0ZVpP1ddnQq8euxgNfQ4+4g2KPMyVPjN+Cvakb/4KADS2KbnN3iSmy+\r\n3gDofB5hrKJbt3si3L6axFpTFvkesNgxnVEo2G6C13icxwj+BJpcaRrfZfe+\r\nnQ0l8bJ0OxlbHW5NmxnnWt+JI0A8gblp3AwZDSjkk+OjHAjzAdT3+qT6L923\r\n6QZF9OZNoRC1v3bGEwkq5jZRgzkIvXSTpjP99M6fo7dRosEMl3klkpQwSv83\r\nYXT7z/194XifT4npdFMpyZVGZsFU/plp8Oq3l1dnQkY00vNmjtW/Iq259UQK\r\nXGLaTvrlZg8NAx2fL0mYAEBBTwM3gzONK8QkEt88Yg8N5oPdL5mJG3VvN/VX\r\nXj9xKBC/PplfOOC/tWm3BqkuksBX3N3u6r4=\r\n=tDGK\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":"fc042e51bbef0deaf7908150ecdbdca36863506d","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"},"homepage":"https://github.com/jimp-dev/jimp#readme","repository":{"url":"git+https://github.com/jimp-dev/jimp.git","type":"git"},"_npmVersion":"lerna/3.16.4/node@v16.18.1+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"16.18.1","dependencies":{"@jimp/utils":"0.17.9--canary.fc042e5.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.17.9--canary.fc042e5.0_1675556456122_0.7489734588192185","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.17.9--canary.fc042e5.0","version":"0.17.9--canary.fc042e5.0"}