{"dist":{"shasum":"d37f53289182abd67344aa46d79f75be3b1e0f12","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.9.3-canary.825.599.0.tgz","fileCount":9,"integrity":"sha512-2/wbTg9wLVQx5M/nrf1FwuD1qBtdtfx0WmmYKK9K2XWP0Uzm46QMDSkA6F/li2iWHH08Y2AkzpkPrR8+TEe+KA==","signatures":[{"sig":"MEQCIEl91Hw3CBQI+T6TiV2Md9Geky5kD1y95ENK1AZxKQIKAiAwYFS89zPEIWfKOSrpLeEGyxq+dc8qEfjB3o22QvBbgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3bNQCRA9TVsSAnZWagAAmXwQAIB1OnJIjyZrC1B7i6N7\nLgyXKxgn3XmyI1MajhDDQzIbZ82f5o52o7CbIWTuGjrAX05j85va8kKHJulH\nQRFzo9L2ncmMxS1+zlbYJjDlmWqJDG5I2TMsR3mZ6QvWhUMoScBtPR0MBy/c\nwqFOwTK7e1FzvWjdTP7zKqk1kIpI71uD9Dm7AMluWFiDkKms/ql8zkVLKYuc\njXP1nlD6D7W6jrM9AAGFTpoNo/D8+W0ttNMBYkUWQGbrKwpOHZ+4QSP7N+pd\nG9YjFWHklNdskK8VpGM4fcxBxfqzOHS/kprZ/aSml5a1VCcQ7EDNAudqb7En\nlQ40UYbXktZkf6A7r8yBa2A5BaUqTSOhDRAINULN9lJDVOt9FfkYwGy5mDrV\n32dS2Qt3cl8kg0ep2jjkqXTbBDi55zyp3T58IbNEJCpIVVuWjwm4FbYpoxRR\nXxMHT1O4Oz9gwcDKAb54OTrlNfGU3Ul6mfjK7ZEmRrJoeJ/+B4T6OXVV9OPR\njmDPJ3xjqNtYpJPNrXvWix92JBCYc7PXcX7f4nuG1lSP3Acodoe9WrRrrbjt\nCHwT5pWHeQ+u1wPt5tSPJWE6DJwNNW5NNbJwAM5z/wuz8tGrybPVA8N/ojkC\nFH+7va+UkjfJD7dE0EcH+xL06RY2qiYBKzQujyodEsvLyeHlSwbY1wSaZnhW\ndi7S\r\n=XYhA\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":"a7ca135eac68c9ed228a1cd5fe535bf9cfc0a143","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@v8.14.1+x64 (linux)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"8.14.1","dependencies":{"core-js":"^3.4.1","@jimp/utils":"0.9.3-canary.825.599.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.9.3-canary.825.599.0_1574810448212_0.5782035668242038","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.9.3-canary.825.599.0","version":"0.9.3-canary.825.599.0"}