sharp
sharp copied to clipboard
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
_I'm sorry if this question seems silly but I didn't see anywhere an "auto" mode other than for the rotation function._ **What are you trying to achieve?** We have a...
**What are you trying to achieve?** Discard all existing metadata of an image and only write entries specified within `withMetadata` to the file. The current behavior merges existing entries with...
**my environment:** nodejs v14.15.0 sharp 0.26.3 **svg** ``` ``` convert code ``` let png = await sharp(Buffer.from(svgstr)).flatten({ background: { r: 255, g: 255, b: 255, alpha: 255 } }).png().toBuffer(); fs.writeFileSync(`${fileDir}/test.png`,...
What are you trying to achieve? Use the sharp library to compare an input image to hundreds/thousands of images to find the closest match at speeds 100x faster than https://github.com/mapbox/pixelmatch...
I'm trying to make a server endpoint using Sharp that converts a given paper puzzle to PNG. The codebase generates SVGs, and uses a tileset for certain graphical elements. The...
What are you trying to achieve? I'm wondering if you have thought about running the [benchmarks](https://sharp.pixelplumbing.com/performance#running-the-benchmark-test) in a Docker container? This way you would not have to install all the...
code ``` -13 ``` Chrome  output 
**Are you using the latest version? Is the version currently in use as reported by `npm ls sharp` the same as the latest version as reported by `npm view sharp...
I am trying to resize an image around a face. I have used another package to extract the bounding boxes of faces within the image. How could I use that...
Reproduction repo: https://github.com/ivancuric/native-repro-sharp In this repo I am using 3 different native modules: an included one built with cmake (`video-module`), a dummy native module (`native-hello-world`), and `sharp`. I am running...