-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VipsJpeg: Invalid SOS parameters for sequential JPEG #1578
Comments
Looks like this might have been when it was introduced: lovell/sharp-libvips@fad8f99#diff-9bb9cf79fcf14a477f1dd3bdc15d0917L26 And judging from changelog: https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/ChangeLog.md#202 |
There's a bug in Samsung firmware (this is from an S9) that prevents it producing valid JPEG files. The forthcoming v0.22.0 release of sharp will include a more recent version of libvips that can allow these. |
For anyone struggling with this issue like we did, you can suppress this error by setting the failOnError option in the sharp constructor to false. |
@lovell Hey, when can we expect v0.22.0 ? |
@sachinB94 Probably before Samsung, who make ~US$60bn/year in profit, fix their buggy firmware. |
sharp v0.22.0 with libvips v8.7.4 now available. You'll need to explicitly set |
Anyone looking for how to set
Had this error with HDR and panorama images produced with Samsung Galaxy A3. Normal images worked fine. |
This comment has been minimized.
This comment has been minimized.
@ccorcos |
This comment has been minimized.
This comment has been minimized.
@timothyallan Please can you open a new issue with sample code and image that is failing. |
How to set failOnError in stream? |
const file = fs.createWriteStream(path); |
@kennethmervin01 Please see #1691 |
Repro example: https://gist.github.com/asilvas/773b902b2d175d452c6472a4ed128762
This is an issue that recently came up that seems related to a recent change. At first I brushed it off as a corrupt image, but quite a few of these cases have come up since. Every other image editor I try the image in works fine. Presumably this is a Jpeg decoder bug, but wanted to post it here since it may require an update to sharp builds.
The text was updated successfully, but these errors were encountered: