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.
It would be nice to get image histograms, specifying the number of bins. Issue #1169 was closed referencing #640, but the latter ended providing functionality to get dominant colors, but...
## Possible bug ### Is this a possible bug in a feature of sharp, unrelated to installation? - [x] Running `npm install sharp` completes without error. - [x] Running `node...
## Question about an existing feature ### What are you trying to achieve? When naively converting non-GIF to GIF, the output GIF is set to loop forever. It might make...
## Question about an existing feature ### What are you trying to achieve? I am trying to remove white pixels (RGB ➡️ 255 255 255, but also close values like...
Enhancement: ensure metadata.background is compatible with color package for single-channel images
When using `sharp(input).metadata()` an object with properties, which includes `background` is returned. > background: Default background colour, if present, for PNG (bKGD) and GIF images, either an RGB Object or...
### What are you trying to achieve? We develop a product that relies heavily on image processing, and in particular on image resizing. We were previously using ImageMagick for this...
Is there currently a way to merge multiple images into a single animation file using Sharp/Libvips? I've tried using raw buffer data that contains 10 frames, however calling `metadata()` shows...
## Feature request ### What are you trying to achieve? The current way to use a externally compiled/provided libvips depends on automatically detection of the sharp installer scripts. This has...
1 is full-transparent
## Feature request Currently the `.trim()` method trims each border as much as possible. If the image is asymmetric then the trimOffsets on each axis might differ (e.g. `trimOffsetLeft` !==...