Skip to content
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

Failed to decode progressive JPEG #130

Open
alu opened this issue Dec 10, 2019 · 5 comments
Open

Failed to decode progressive JPEG #130

alu opened this issue Dec 10, 2019 · 5 comments

Comments

@alu
Copy link

alu commented Dec 10, 2019

  • I encountered spectral selection is not allowed in non-progressive scan Error.
  • convert command in Linux displayed Invalid SOS parameters for sequential JPEG warning but the image was generated successfully.
  • The images are generated by these hardwere in my case
    • samsung SCV36
    • samsung SC-02G
    • samsung SC-05G

may be relevant

@lovasoa
Copy link
Contributor

lovasoa commented Dec 10, 2019

Can you provide an image that triggers the error ? If possible, the image should not be copyrighted so that it can be redistributed freely with the test data for this repository.

@alu
Copy link
Author

alu commented Dec 10, 2019

@lovasoa

Sorry, i can't do it because images that the problem occurs are owned by our customers.
I looking for user of those hardware in my company but probably not present.

@enzzc
Copy link

enzzc commented Dec 30, 2019

I had the same issue with one specific image from my collection. This picture has been taken with a Samsung Galaxy J3 (SM-J320FN).

Version: jpeg-decoder = "0.1", compiled with Rust 1.36.0

Code:

fn main() {
    let file = File::open("/home/enz/Images/bug_imgrust.jpg").expect("failed to open file");
    let mut decoder = jpeg::Decoder::new(BufReader::new(file));
    let pixels = decoder.decode().expect("failed to decode image");
    let metadata = decoder.info().unwrap();
}

Error:

thread 'main' panicked at 'failed to decode image: Format("spectral selection is not allowed in non-progressive scan")', src/libcore/result.rs:999:5

For this particular image of my collection, the identify -verbose command complains with the following message:

identify-im6.q16: Invalid SOS parameters for sequential JPEG `/home/enz/Images/bug_imgrust.jpg' @ warning/jpeg.c/JPEGWarningHandler/352.

I don't know if that SOS stuff can have a relationship with the present problem. Maybe it's just a coincidence, but just in case, it can be worth mentioning.

I can send you the picture by email (I appear in this photo).

@qarmin
Copy link

qarmin commented Jan 12, 2021

Finally I find image which cause this error - 20190821_154545.jpg.zip

@biot023
Copy link

biot023 commented Mar 16, 2021

+1 -- we're seeing this in our app, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants