{"_id":"@gatsbyjs/sharp","_rev":"321778","name":"@gatsbyjs/sharp","description":"High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images","dist-tags":{"latest":"0.27.1-0"},"maintainers":[{"name":"abhiaiyer","email":""},{"name":"daniellewgatsby","email":""},{"name":"dmccraw","email":""},{"name":"dschau","email":"dustinschau@gmail.com"},{"name":"fk","email":"sechskilo@gmail.com"},{"name":"gatsby_integrations","email":""},{"name":"j0sh77","email":""},{"name":"julienp","email":"j.poissonnier@whatever-company.com"},{"name":"kgarbaya","email":""},{"name":"kylemathews","email":""},{"name":"lekoarts","email":""},{"name":"marvinjudehk","email":"marvinjudehk@yahoo.com"},{"name":"mcolelittle","email":"mcolelittle@gmail.com"},{"name":"mlgualtieri-gatsby","email":""},{"name":"nodebotanist","email":""},{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"rachelbahl","email":""},{"name":"smthomas","email":"shane@codekarate.com"},{"name":"tyhopp","email":""},{"name":"tylerbarnes","email":"tyler@known.design"},{"name":"wardpeet","email":"ward@coding-tech.com"}],"time":{"modified":"2021-06-04T01:27:26.000Z","created":"2021-01-13T13:12:39.240Z","0.27.1-0":"2021-01-13T13:12:39.240Z"},"users":{},"author":{"name":"Lovell Fuller","email":"npm@lovell.info"},"repository":{"type":"git","url":"git://github.com/lovell/sharp.git"},"versions":{"0.27.1-0":{"name":"@gatsbyjs/sharp","description":"High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images","version":"0.27.1-0","author":{"name":"Lovell Fuller","email":"npm@lovell.info"},"homepage":"https://github.com/lovell/sharp","contributors":[{"name":"Pierre Inglebert","email":"pierre.inglebert@gmail.com"},{"name":"Jonathan Ong","email":"jonathanrichardong@gmail.com"},{"name":"Chanon Sajjamanochai","email":"chanon.s@gmail.com"},{"name":"Juliano Julio","email":"julianojulio@gmail.com"},{"name":"Daniel Gasienica","email":"daniel@gasienica.ch"},{"name":"Julian Walker","email":"julian@fiftythree.com"},{"name":"Amit Pitaru","email":"pitaru.amit@gmail.com"},{"name":"Brandon Aaron","email":"hello.brandon@aaron.sh"},{"name":"Andreas Lind","email":"andreas@one.com"},{"name":"Maurus Cuelenaere","email":"mcuelenaere@gmail.com"},{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Victor Mateevitsi","email":"mvictoras@gmail.com"},{"name":"Alaric Holloway","email":"alaric.holloway@gmail.com"},{"name":"Bernhard K. Weisshuhn","email":"bkw@codingforce.com"},{"name":"Chris Riley","email":"criley@primedia.com"},{"name":"David Carley","email":"dacarley@gmail.com"},{"name":"John Tobin","email":"john@limelightmobileinc.com"},{"name":"Kenton Gray","email":"kentongray@gmail.com"},{"name":"Felix Bünemann","email":"Felix.Buenemann@gmail.com"},{"name":"Samy Al Zahrani","email":"samyalzahrany@gmail.com"},{"name":"Chintan Thakkar","email":"lemnisk8@gmail.com"},{"name":"F. Orlando Galashan","email":"frulo@gmx.de"},{"name":"Kleis Auke Wolthuizen","email":"info@kleisauke.nl"},{"name":"Matt Hirsch","email":"mhirsch@media.mit.edu"},{"name":"Matthias Thoemmes","email":"thoemmes@gmail.com"},{"name":"Patrick Paskaris","email":"patrick@paskaris.gr"},{"name":"Jérémy Lal","email":"kapouer@melix.org"},{"name":"Rahul Nanwani","email":"r.nanwani@gmail.com"},{"name":"Alice Monday","email":"alice0meta@gmail.com"},{"name":"Kristo Jorgenson","email":"kristo.jorgenson@gmail.com"},{"name":"YvesBos","email":"yves_bos@outlook.com"},{"name":"Guy Maliar","email":"guy@tailorbrands.com"},{"name":"Nicolas Coden","email":"nicolas@ncoden.fr"},{"name":"Matt Parrish","email":"matt.r.parrish@gmail.com"},{"name":"Marcel Bretschneider","email":"marcel.bretschneider@gmail.com"},{"name":"Matthew McEachen","email":"matthew+github@mceachen.org"},{"name":"Jarda Kotěšovec","email":"jarda.kotesovec@gmail.com"},{"name":"Kenric D'Souza","email":"kenric.dsouza@gmail.com"},{"name":"Oleh Aleinyk","email":"oleg.aleynik@gmail.com"},{"name":"Marcel Bretschneider","email":"marcel.bretschneider@gmail.com"},{"name":"Andrea Bianco","email":"andrea.bianco@unibas.ch"},{"name":"Rik Heywood","email":"rik@rik.org"},{"name":"Thomas Parisot","email":"hi@oncletom.io"},{"name":"Nathan Graves","email":"nathanrgraves+github@gmail.com"},{"name":"Tom Lokhorst","email":"tom@lokhorst.eu"},{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},{"name":"Sylvain Dumont","email":"sylvain.dumont35@gmail.com"},{"name":"Alun Davies","email":"alun.owain.davies@googlemail.com"},{"name":"Aidan Hoolachan","email":"ajhoolachan21@gmail.com"},{"name":"Axel Eirola","email":"axel.eirola@iki.fi"},{"name":"Freezy","email":"freezy@xbmc.org"},{"name":"Daiz","email":"taneli.vatanen@gmail.com"},{"name":"Julian Aubourg","email":"j@ubourg.net"},{"name":"Keith Belovay","email":"keith@picthrive.com"},{"name":"Michael B. Klein","email":"mbklein@gmail.com"},{"name":"Jordan Prudhomme","email":"jordan@raboland.fr"},{"name":"Ilya Ovdin","email":"iovdin@gmail.com"},{"name":"Andargor","email":"andargor@yahoo.com"},{"name":"Paul Neave","email":"paul.neave@gmail.com"},{"name":"Brendan Kennedy","email":"brenwken@gmail.com"},{"name":"Brychan Bennett-Odlum","email":"git@brychan.io"},{"name":"Edward Silverton","email":"e.silverton@gmail.com"},{"name":"Roman Malieiev","email":"aromaleev@gmail.com"},{"name":"Tomas Szabo","email":"tomas.szabo@deftomat.com"},{"name":"Robert O'Rourke","email":"robert@o-rourke.org"},{"name":"Guillermo Alfonso Varela Chouciño","email":"guillevch@gmail.com"},{"name":"Christian Flintrup","email":"chr@gigahost.dk"},{"name":"Manan Jadhav","email":"manan@motionden.com"},{"name":"Leon Radley","email":"leon@radley.se"}],"scripts":{"install":"(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)","clean":"rm -rf node_modules/ build/ vendor/ .nyc_output/ coverage/ test/fixtures/output.*","test":"semistandard && cpplint && npm run test-unit && npm run test-licensing","test-unit":"nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js","test-licensing":"license-checker --production --summary --onlyAllow=\"Apache-2.0;BSD;ISC;MIT\"","test-coverage":"./test/coverage/report.sh","test-leak":"./test/leak/leak.sh","docs-build":"documentation lint lib && node docs/build && node docs/search-index/build","docs-serve":"cd docs && npx serve","docs-publish":"cd docs && npx firebase-tools deploy --project pixelplumbing --only hosting:pixelplumbing-sharp"},"main":"lib/index.js","repository":{"type":"git","url":"git://github.com/lovell/sharp.git"},"keywords":["jpeg","png","webp","avif","tiff","gif","svg","dzi","image","resize","thumbnail","crop","embed","libvips","vips"],"dependencies":{"array-flatten":"^3.0.0","color":"^3.1.3","detect-libc":"^1.0.3","fs-extra":"^9.0.1","node-addon-api":"^3.1.0","npmlog":"^4.1.2","prebuild-install":"^6.0.0","semver":"^7.3.4","simple-get":"^4.0.0","tar-fs":"^2.1.1","tunnel-agent":"^0.6.0"},"devDependencies":{"async":"^3.2.0","cc":"^3.0.1","decompress-zip":"^0.3.2","documentation":"^13.1.0","exif-reader":"^1.0.3","icc":"^2.0.0","license-checker":"^25.0.1","mocha":"^8.2.1","mock-fs":"^4.13.0","nyc":"^15.1.0","prebuild":"^10.0.1","rimraf":"^3.0.2","semistandard":"^16.0.0"},"license":"Apache-2.0","config":{"libvips":"8.10.5","runtime":"napi","target":3},"engines":{"node":">=10"},"funding":{"url":"https://opencollective.com/libvips"},"binary":{"napi_versions":[3]},"semistandard":{"env":["mocha"]},"cc":{"linelength":"120","filter":["build/include"]},"gitHead":"d5d71c313c4ff926600444b4203102610a1443e8","bugs":{"url":"https://github.com/lovell/sharp/issues"},"_id":"@gatsbyjs/sharp@0.27.1-0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"shasum":"abc8dd43054e913199bdb26888c29a4d74cc70df","size":85175,"noattachment":false,"key":"/@gatsbyjs/sharp/-/@gatsbyjs/sharp-0.27.1-0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@gatsbyjs/sharp/download/@gatsbyjs/sharp-0.27.1-0.tgz"},"_npmUser":{"name":"sidharthachatterjee","email":"me@sidharthachatterjee.com"},"directories":{},"maintainers":[{"name":"abhiaiyer","email":""},{"name":"daniellewgatsby","email":""},{"name":"dmccraw","email":""},{"name":"dschau","email":"dustinschau@gmail.com"},{"name":"fk","email":"sechskilo@gmail.com"},{"name":"gatsby_integrations","email":""},{"name":"j0sh77","email":""},{"name":"julienp","email":"j.poissonnier@whatever-company.com"},{"name":"kgarbaya","email":""},{"name":"kylemathews","email":""},{"name":"lekoarts","email":""},{"name":"marvinjudehk","email":"marvinjudehk@yahoo.com"},{"name":"mcolelittle","email":"mcolelittle@gmail.com"},{"name":"mlgualtieri-gatsby","email":""},{"name":"nodebotanist","email":""},{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"rachelbahl","email":""},{"name":"smthomas","email":"shane@codekarate.com"},{"name":"tyhopp","email":""},{"name":"tylerbarnes","email":"tyler@known.design"},{"name":"wardpeet","email":"ward@coding-tech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sharp_0.27.1-0_1610543559044_0.7790796817102501"},"_hasShrinkwrap":false,"publish_time":1610543559240,"_cnpm_publish_time":1610543559240}},"readme":"# sharp\n\n<img src=\"https://cdn.jsdelivr.net/gh/lovell/sharp@master/docs/image/sharp-logo.svg\" width=\"160\" height=\"160\" alt=\"sharp logo\" align=\"right\">\n\nThe typical use case for this high speed Node.js module\nis to convert large images in common formats to\nsmaller, web-friendly JPEG, PNG, WebP and AVIF images of varying dimensions.\n\nResizing an image is typically 4x-5x faster than using the\nquickest ImageMagick and GraphicsMagick settings\ndue to its use of [libvips](https://github.com/libvips/libvips).\n\nColour spaces, embedded ICC profiles and alpha transparency channels are all handled correctly.\nLanczos resampling ensures quality is not sacrificed for speed.\n\nAs well as image resizing, operations such as\nrotation, extraction, compositing and gamma correction are available.\n\nMost modern macOS, Windows and Linux systems running Node.js v10+\ndo not require any additional install or runtime dependencies.\n\n## Examples\n\n```sh\nnpm install sharp\n```\n\n```javascript\nconst sharp = require('sharp');\n```\n\n### Callback\n\n```javascript\nsharp(inputBuffer)\n  .resize(320, 240)\n  .toFile('output.webp', (err, info) => { ... });\n```\n\n### Promise\n\n```javascript\nsharp('input.jpg')\n  .rotate()\n  .resize(200)\n  .toBuffer()\n  .then( data => { ... })\n  .catch( err => { ... });\n```\n\n### Async/await\n\n```javascript\nconst semiTransparentRedPng = await sharp({\n  create: {\n    width: 48,\n    height: 48,\n    channels: 4,\n    background: { r: 255, g: 0, b: 0, alpha: 0.5 }\n  }\n})\n  .png()\n  .toBuffer();\n```\n\n### Stream\n\n```javascript\nconst roundedCorners = Buffer.from(\n  '<svg><rect x=\"0\" y=\"0\" width=\"200\" height=\"200\" rx=\"50\" ry=\"50\"/></svg>'\n);\n\nconst roundedCornerResizer =\n  sharp()\n    .resize(200, 200)\n    .composite([{\n      input: roundedCorners,\n      blend: 'dest-in'\n    }])\n    .png();\n\nreadableStream\n  .pipe(roundedCornerResizer)\n  .pipe(writableStream);\n```\n\n[![Test Coverage](https://coveralls.io/repos/lovell/sharp/badge.svg?branch=master)](https://coveralls.io/r/lovell/sharp?branch=master)\n[![N-API v3](https://img.shields.io/badge/N--API-v3-green.svg)](https://nodejs.org/dist/latest/docs/api/n-api.html#n_api_n_api_version_matrix)\n\n### Documentation\n\nVisit [sharp.pixelplumbing.com](https://sharp.pixelplumbing.com/) for complete\n[installation instructions](https://sharp.pixelplumbing.com/install),\n[API documentation](https://sharp.pixelplumbing.com/api-constructor),\n[benchmark tests](https://sharp.pixelplumbing.com/performance) and\n[changelog](https://sharp.pixelplumbing.com/changelog).\n\n### Contributing\n\nA [guide for contributors](https://github.com/lovell/sharp/blob/master/.github/CONTRIBUTING.md)\ncovers reporting bugs, requesting features and submitting code changes.\n\n### Licensing\n\nCopyright 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Lovell Fuller and contributors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n[https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","_attachments":{},"homepage":"https://github.com/lovell/sharp","bugs":{"url":"https://github.com/lovell/sharp/issues"},"license":"Apache-2.0"}