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.
## Problem I'm choosing to import the wasm binary into the bundle that is produced by vite like so for sharp: import SharpWasm from '@img/sharp-wasm32/lib/sharp-wasm32.node.wasm?arraybuffer' It's requiring hacky code. Read...
## 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...
When compiling a binary using "Bun build --compile", it seems that the resulting binary does not contain the "binary" of Sharp. It still tries to load it from ./node_modules. If...
I couldn't find anything in the docs or in the repo except for the timeout option. However, I'd like to kill the process while it's still happening (for example, if...
I need help understanding what to expect in terms of memory usage. For some reason, I thought that using streaming and Jemalloc (on Node Alpine-18) would let me make transformations...
## Feature request ### What are you trying to achieve? Add support for transcoding JPG gain maps. These images enable the ability to share images edited for modern displays that...
## 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...
"After upgrading from version 0.33.4 to 0.33.5 of the sharp library, the memory leak issue has been resolved, but there are rendering failures with high-resolution images." sharp(imgBuffer, { unlimited: true...
## Question about an existing feature The `.timeout()` method seems to only apply to certain operations, not the actual encoding of the image - is that right? Is there a...
## Question about an existing feature ### What are you trying to achieve? I want to place an image with transparency on top of another, but cut through the original...