asilvas/node-image-steam

Error: VipsJpeg: Invalid SOS parameters for sequential JPEG

linearloopdevops opened this issue · 1 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, },