{"bugs":{"url":"https://github.com/jimp-dev/jimp/issues"},"dist":{"shasum":"f2e94229471c923b5068ccef1fc0fc32e7f3347f","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.17.9--canary.1141.cd4d455.0.tgz","fileCount":10,"integrity":"sha512-ZSKvLr4dfGkMZZo0312luu5hp2qrXGH1yRhnECuBRvjRnKnqDJk7A49wUND8WH9tpCiKzgk8N2II3gsG5P2Y0Q==","signatures":[{"sig":"MEQCIEtlxN57qdOr8gfd91N7PviogC37278seocDmeNtaZ9oAiA5vt1wOBm0ZzRONSPnfM+TnuMGdOI+id7XbEMi6rQRlg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3vNUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBiQ/8C8qzW6NawtTfEZsPzT+Ed4heno2CO/AtNrCX1DWT/yDY3FMI\r\nNnA/TZUp9T4o71QFtrOKwpaowvDS+y/KAFvK212rAGCjweyoQ5mMQ6zpzoPa\r\n6P1vqFSU0qXS0bCMlykH3I6jOkouKBBK8tSo+ZDTAhxelqOXR1PR13sHjgPZ\r\nHsSOK5kYqR1bGPo7x6FMDnzrUNKrKHDd3VjxA/shIoa91xxaER0k/gPLdFoZ\r\nKZG67OUAXSkD1CLZbQa8VUXmAYULWcH4UUjwBf0NoKCr3rkJbw/YI/rimFzT\r\n3uywd/Ba1Dmo0WmIvmWBOWWa6rnYm+FCsoBRO9EmVN4WDIihGqOSZV58xPPH\r\nY8MLGdGlAVqsZn7MQ7X9sd2fiZ/qkkcgAOA28lfUZCRC7/BdEWA2z0A+g3Xw\r\nZ/LuO1pV7itlIcqLipd4Hlxvqe/LtUlPJ8Vtcx0nn9BkyI2izDy2ZThSxSjb\r\nOTH1LSXuTx9gAsLloDl/8CxUHqNlpniivpA8N/3OKPNz6OY6zpRAl/zDGUW/\r\noyUJ3MaBlsorC/vfi9sHvmnb5TavvO3pooXfwlnRDVcqVI4OBQm//MAydPlX\r\nc8Gxbb1tHtDfG3CPGEQG1nVjG6hzBI29PI5gAS2gvN1ipiKYJk6ZiYDIhPKJ\r\nuNqgcAnHAKXMWPXfkWBkycczuj2mPTQJufk=\r\n=mAAW\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":"cd4d455e91f5279ea8dea33ba35c860f86a15f5e","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.1141.cd4d455.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.1141.cd4d455.0_1675555667836_0.33879572708167327","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.17.9--canary.1141.cd4d455.0","version":"0.17.9--canary.1141.cd4d455.0"}