{"dist":{"shasum":"e3190ff0d0506a52300159a8e7442ce6fd25a52e","tarball":"https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.6.5-canary.eeb6481.0.tgz","fileCount":8,"integrity":"sha512-jyuk5m8+lleeSeALR0/NbvVCA4GakAs16NJk8drcGa1LHCrSyuZ2Oid1ib2vsxoGw8mY/DcIu4tsDwGfltTa3Q==","signatures":[{"sig":"MEUCIFsDgtigJqfod6zttoXeSjVDZMfpe3QrCp+79rrbonh9AiEAs2kzRLY/J0wpbMtqnLa0O3a0aAEytYohkM9eEViSMfo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbbD/CRA9TVsSAnZWagAARwYP/2BhlEsW3Zw+hVvLmabC\nIRtgZVDAq7SaH1KAQ2KzTDWvo3mTCrggRT7Zr9++rnJVOS9z9P3I7X/Ho9KV\nC2BoF5DT5v2m3IOeeIGIXDTpGznQyOKCoLbb6EpckTv77XkEozcY2GIZCFdq\nwm7o01pBROoAZn9qp0fXLL2CR9/uYJyi4dHJdirN5pLiXYK4sDnTXmtb/WL5\nfqnAVnnKgRVR0wzd0Hj+ehbfnzNMl2pPmKbTDX2QWLYxolcNnb5B2Lj638F5\nTdrmorbCOOQrNRSXYiPPEwBfDiju38+FHQk/tDIm6tfOd5+TsF3YxHxokglA\nIm2ZlnaRSnVeh/Ajh7mnXsqBvaJ/+aHnsl/omJhBqgvQtIi2jEzF4lz+rV4u\n3JPSAMG7mtmeGUMKMHIwhTdrp0KUNnQ2dZvcRt++oHxSAmciYaXdDGH84yWz\nu3BmAy60Tq96uzGhnwRnXCGWRykuirqd21Ts8CUB95WNJpgeTLybRcZgh1if\nUnbW1iplGJymQsmoryiIbl5Lq2hm6jm85rYKicqf6lx+0+EXYGH1DaVyCJGo\njjfnj1h0hiQnDZmMMZlJvEIjkcZNC9+3iRzscc9rZRgRNbOF7XmA48s4wNCb\n3/5fAhstZ7dKOFqQRMdIz4zddOQaUjCZ7iMHw0+h3V+dM4r4X5qaDyzJk/8g\ntcgM\r\n=kUml\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@jimp/plugin-scale","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":"eeb6481c32c72c7082efa5fa9079653c513d1b27","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.13.4/node@v10.15.0+x64 (darwin)","description":"scale an image.","directories":{},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_nodeVersion":"10.15.0","dependencies":{"core-js":"^2.5.7","@jimp/utils":"0.6.5-canary.eeb6481.0"},"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.6.5-canary.eeb6481.0_1567469823088_0.762678264106394","host":"s3://npm-registry-packages"},"_id":"@jimp/plugin-scale@0.6.5-canary.eeb6481.0","version":"0.6.5-canary.eeb6481.0"}