sharp icon indicating copy to clipboard operation
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.

Results 285 sharp issues
Sort by recently updated
recently updated
newest added

## 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...

enhancement
ready-to-ship

## 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...

bug
ready-to-ship

## 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

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...

enhancement

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...

installation

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...

enhancement
blocked-upstream-dependency

- environment nodejs: 14.18.3 sharp: 0.30.6 - svg ![svg in chrome](https://user-images.githubusercontent.com/31604995/173225733-d3c2c428-c0e6-4c03-96ff-7617ca579605.png) ![svg code](https://user-images.githubusercontent.com/31604995/173225775-a870027f-192f-406d-86e6-c4695ce54156.png) - code ![convert code](https://user-images.githubusercontent.com/31604995/173225782-cfc9d090-d233-446f-9e2d-cf150f66c56f.png) - output ![output png](https://user-images.githubusercontent.com/31604995/173225799-4fbad94e-e7b9-405e-9b20-91bc5aa8b607.png)

enhancement
blocked-upstream-dependency

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: ```...

bug
ready-to-ship

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: ---------- | ---------- ![mouse](https://user-images.githubusercontent.com/4290245/120887643-68732200-c5f4-11eb-9978-7a50c6bf3566.png) | ![output](https://user-images.githubusercontent.com/4290245/120887403-eafae200-c5f2-11eb-8f18-397ef734541f.png) ``` const sharp = require('sharp');...

bug
blocked-upstream-dependency

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...

installation