{"name":"@jimp/plugin-crop","version":"0.3.6-alpha.5","description":"crop an image.","main":"dist/index.js","module":"es/index.js","scripts":{"build":"npm run build:node:production && npm run build:module","build:watch":"npm run build:node:debug -- -- --watch --verbose","build:debug":"npm run build:node:debug","build:module":"cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js","build:node":"babel src -d dist --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"},"author":{},"license":"MIT","dependencies":{"@jimp/utils":"^0.3.6-alpha.5"},"peerDependencies":{"@jimp/custom":"0.3.6-alpha.4"},"publishConfig":{"access":"public"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2014 Oliver Moran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@jimp/plugin-crop@0.3.6-alpha.5","dist":{"shasum":"ab34159e4f4b51da5ecd5e3705fbea9294428cf1","tarball":"http://registry-npm.ywwl.com/@jimp/plugin-crop/download/@jimp/plugin-crop-0.3.6-alpha.5.tgz","integrity":"sha512-QMILdXJ1Pe+i/i7GHaaQJTcmyvMcWcqcvCYlpcSOsZq4T81XIbvnwzW/IDYOaJf5iU8QM7uNaYgTDZe6c1qVRA==","fileCount":9,"unpackedSize":32096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbgisSCRA9TVsSAnZWagAA95QP/3ONrCS9TRUb/vMbFDKf\n51+ANbkR2w1QvQdsIc/VGUpeaKdbFh0yZgW2UBtF+OJynTBbT6QUK7kHMGB7\nhYgNKzB3UPqnf1DHrjzFxdxZ7Qjgs5ZeXrtRpesJd4ug/xZBMeav/VrzEIJ6\nj6IK1ywnuEgdfmIR4XpGBTwHOk6iNHqXvD5oAnRXglFavbH9R56MIjIhksyo\npoAWF6GEUolUNpDZxlVw8KjAJ/hNKRVdR+JMjfayPoj21dTOwEjMODh0urhj\nKmJ8poxYn8NCDmmGdU8K3tHY51/BkSyO2sYYhY1L036ETNfz76gOK+/oW4Rd\naFpF9LUNb3PWejqCfVcKrFhb7rAaV1jUhR/P2bAMNVNdBM6Pez23X+hcwoCk\nOAWOzlVyEpLZfxTtOa8V8VxLJs7Dg821Bb3CxRzb3PCYl6QbxU0kODh5byT/\nXchZmUjeKKe98/d/+kdoVyZG8+cnmA7+rwnJhgGTgI02FaLsWNSqfyZ2pVhS\nivVkDsVHPTjswng14maUzlPrRfnYLue4pxD0HysnWqRhMqq8lECi8gX2i9w0\nQ6fJn3J9bR5v22Qw40BmoyAfJl3oUsMZYLkUnO89yiGaz8s1CNxuVf+ryQzJ\nOwYJMPJllbTaNh+5eO3WBmq9lY+jY6qmrNme+jhcYTQ9QHVgrKtN8aZTm3uH\nZ8Et\r\n=YCGQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsr5OwBewwXeU3Nh5ZWKN89cgY0w6F+TBmJI3cve4R2gIgeqI0TKfLLrBQVJIUXAieA7pIhvvBzNJFvhDoyPKz2IE="}],"size":6962,"noattachment":false,"key":"/@jimp/plugin-crop/-/@jimp/plugin-crop-0.3.6-alpha.5.tgz"},"maintainers":[{"name":"alisowski","email":"lisowski54@gmail.com"},{"name":"oliver.moran","email":"oliver@nth-iteration.ie"}],"_npmUser":{"name":"alisowski","email":"lisowski54@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-crop_0.3.6-alpha.5_1535257361857_0.3259738045702232"},"_hasShrinkwrap":false,"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-crop</h1>\n  <p>Crop an image.</p>\n</div>\n\n## Crop\n\nCrops the image at a given point to a give size\n\n- @param {number} x the x coordinate to crop form\n- @param {number} y the y coordinate to crop form\n- @param w the width of the crop region\n- @param h the height of the crop region\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.crop(150, 150);\n}\n\nmain();\n```\n\n## AutoCrop\n\nAutoCrop same color borders from this image\n\n- @param {number} tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%)\n- @param {boolean} cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true)\n\nor\n\n- @param {object} options object\n  - tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%)\n  - cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true)\n  - cropSymmetric (optional): flag to force cropping top be symmetric. north and south / east and west are cropped by the same value\n  - leaveBorder (optional): integer of how many pixels of the background color to leave around the image\n\n```js\nimport jimp from \"jimp\";\n\nasync function main() {\n  const image = await jimp.read(\"test/image.png\");\n\n  image.autocrop();\n  image.autocrop({ cropOnlyFrames: false, cropSymmetric: true });\n}\n\nmain();\n```\n","publish_time":1535257361961,"_cnpm_publish_time":1535257361961,"dist-tags":{"canary":"1.1.5--canary.d9590e7.0","latest":"1.6.1"}}