asilvas / node-image-steam

A simple, fast, and highly customizable on-the-fly image manipulation web server built atop Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: VipsJpeg: Invalid SOS parameters for sequential JPEG

linearloopdevops opened this issue · comments

Getting Errors when I convert a JPEG image

Attached Image not converted with below configuration

20210215-221810

Configurations:
sharp: { defaults: { animated: true }, cache: false, },

Can you please provide a solution to why it's happening?

It's an invalid JPEG.

But you can work around it by updating your config if you want to support these invalid images. lovell/sharp#1578

sharp: { defaults: { animated: true, failOnError: false }, cache: false, },