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.
## Question about an existing feature When install a custom libvips with PDF support, we can convert a PDF file to an PNG image with sharp. However, when the PDF...
## Possible bug ``` Error: Premature close at new NodeError (node:internal/errors:372:5) at Sharp.onclose (node:internal/streams/end-of-stream:136:30) at Sharp.emit (node:events:527:28) at Object. (/usr/src/app/node_modules/sharp/lib/output.js:1144:16) { code: 'ERR_STREAM_PREMATURE_CLOSE' } ``` ### Is this a possible...
## 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...
This could seriously increase the power of Stream-based image processing. Here's an example of how halving an image's dimensions could work: ``` javascript // PROPOSED API NOT YET AVAILABLE var...
When setting up my project I get the following error (see attached file for more details): ``` npm ERR! code 1 npm ERR! path ...\node_modules\cordova-res\node_modules\sharp npm ERR! command failed npm...
What are you trying to achieve? Am trying to write GPS data to an image but I can't get it work, Any help is highly appreciated Have you searched for...
- environment nodejs: 14.18.3 sharp: 0.30.6 - svg   - code  - output 
Sample code: ``` import Sharp from 'sharp'; Object.prototype.testProtoFunc = function () { //code return this; }; const { data, info } = await Sharp('./image.png').raw().toBuffer({ resolveWithObject: true }); ``` Output: ```...
Trying to convert certain svg files [(mouse.txt)](https://github.com/lovell/sharp/files/6602298/mouse.txt) but end up getting missing elements in the png: expected: | output: ---------- | ----------  |  ``` const sharp = require('sharp');...
Hi, I'm getting the following error: ``` Something went wrong installing the "sharp" module A dynamic link library (DLL) initialization routine failed. \\?\C:\Users\Admin\Desktop\Projects\fiszki\src\node_modules\sharp\build\Release\sharp.node - Remove the "node_modules/sharp" directory then run...