Comments (4)
Hi Gaël, it hard to tell from this snippet what rawImg
contains.
The sharp constructor can handle a native string (=filename) or Buffer object.
What does typeof rawImg
and rawImg instanceof Buffer
return?
from sharp.
the rawImg instanceof Buffer
returns true. I think it's this line message.
from sharp.
Thanks @Swatto, this could happen if the Buffer is empty. What does rawImg.length
return?
from sharp.
Yeah it was that stupid thing...
Sorry guys and great project !
from sharp.
Related Issues (20)
- Cannot find module '../build/Release/sharp-win32-x64.node' HOT 4
- Cannot find module '../build/Release/sharp-win32-x64.node' HOT 2
- Continuation of #3870 - error Could not load the "sharp" module using the linux-x64 runtime HOT 2
- Installing Sharp in the Electron React Boilerplate framework resulted in an exception during packaging HOT 14
- Does sharp fully download the image when retrieving metadata? HOT 2
- Error while running Jest tests: Could not load the "sharp" module using the win32-x64 runtime HOT 7
- MacOS v11 + Bun v1.0.20 + Vips v8.14.5 + Sharp v0.32.6 = fatal error vips/vips8 file not found HOT 5
- "out of order read" when using extend with other option of extendWith HOT 2
- TIF file converted to PNG Pure Black HOT 4
- Getting module not found for sharp after installation HOT 4
- VIPS not taken into account for .heic files with Bun unless we run "npm install" in node_modules/sharp HOT 2
- Problem with sharp in Docker on Windows 11 machine HOT 1
- Integrity check fails on Cloudflare Pages HOT 5
- High Memory Usage when processing HEIC file with high dimensions HOT 8
- fs.outputFileSync issue with sharp 33.1 - worked in 32.6 HOT 2
- Missing Pre-Built win32-arm64
- Any reason node 19 is not a supported engine? HOT 2
- Improve error messaging when attempting to rotate multi-page image HOT 2
- Sharp Error 'Input Buffer is empty' after dockerize Nestjs App HOT 2
- Write custom tags into EXIF data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharp.