{"dist":{"shasum":"96b9d1c30c51ad45ac54b337cd5bbe56e0608e0f","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.9.4-canary.838.613.0.tgz","fileCount":10,"integrity":"sha512-+v/b2MmpIexhv77X5DfF8k/TNPdz9ZtLl0hjVSB67w5e6Vxy6o+EBTKN2SjokjFuEhhkDowOceCPkIZWPC6wHg==","signatures":[{"sig":"MEUCICw6ySuCUKjUw5FdsASlhhRZO+hjge+tAQftJvP4HpguAiEA/O3ZV5NaQHYSKPb34s3iZZ66shtkIunZjD05Ixlc0TM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF0d9CRA9TVsSAnZWagAAUNEP/1KjlQVeaDu0dfy7i1qV\n5CfFCGh492TnqZMQg1kedW21AAWLZXycgp76A9Q9c+ERoidsZA2TP3/63fci\nSEwLJs6CjUT4r1hOve0zszd7oZshFIFkThQYp193i0iRQhIEv7q9SfPQeakp\n67sESaYcrmZYaVp9AhsWwd3W6P6obnT0Oc9PXo+Z/9n6tPrvNLs42q49XLgN\nR+pcLnLN51rhz7HjoYE8mftYKIpktKIO9bs/yBQGlsLHL//U8DX2YhzLYHOp\nD9nF3REPWdDkXwkrMLru8Pe8wvBBGGpkOty9PKbP0YEGq8PGxVUAUNpV511Q\nKvZVuC84qvwTR/rV28mbva4hI8ACpyHA3M8rgNmBo5Xc3htJZwNrmPlSEBFI\n0RHIFww8RxmjhrIpTPd47eZ3LyfcaJwvWjEYWM0DhsrZqbVgu9L9sFVilGQP\nu7H3PPa7crW+6vKGmtJz7Jibz4Fjpr0hw30klQCtwDutF7TJ2vLrleO3jlme\n7ZSkAZBJDlWAVtbeJCquKksgQAQ3f/hysur/bmmp1UIWEFXgCnw3YjRe2/pI\ntYdnnG0Ja4xlYzwhUsuxFx0pfcN3sxFQP3fX5SD1iVKqXNWsr4wm43TV6AHz\nxlXyZBKqEnn24A5AiIiBcFPrgM1GP5AG+Hc2UXo0TTsBbbpMOTJFmTkLYUP9\nhtF5\r\n=hXi+\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":"c58a4dfea857b88949d0891906c31cda66345ded","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.4-canary.838.613.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.4-canary.838.613.0_1578583933519_0.48571306953440696","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.9.4-canary.838.613.0","version":"0.9.4-canary.838.613.0"}