jpeg-decoder icon indicating copy to clipboard operation
jpeg-decoder copied to clipboard

Failed to decode the image below:

Open ghost opened this issue 5 years ago • 10 comments

http://www.filedropper.com/test_17

thread 'main' panicked at 'failed to decode image: Format("no data found")', src/libcore/result.rs:997:5

ghost avatar Apr 18 '19 20:04 ghost

This is the same bug as described in image-rs/image#738

kaksmet avatar Apr 19 '19 09:04 kaksmet

I can't seem to get an image from the filedropper link. Did it expire?

Update: There is a working image link in image-rs/image#738 .

kaj avatar Aug 05 '19 09:08 kaj

@kaksmet Hi.

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. Can i get same behavior in this crate?

alu avatar Dec 09 '19 00:12 alu

When I looked at the Exif of the image in question, it was taken with the following hardware.

samsung SCV36 samsung SC-02G samsung SC-05G

We handle a myriad of jpeg files, and some of them have been confirmed.

alu avatar Dec 10 '19 11:12 alu

This question is may be relevant

https://stackoverflow.com/questions/48653584/cannot-load-jpeg-with-java-created-by-samsung-phone

alu avatar Dec 10 '19 11:12 alu

@fintelia Do you have any plans to address this issue in the future? I don't have any skills for jpeg encoding so all i can do is provide information, sorry.

alu avatar Dec 10 '19 12:12 alu

@alu : I don't think this is the same issue. The issue here is about the no data found error generated when a progressive JPEG image lacks a final scan. Maybe you should open another issue.

lovasoa avatar Dec 10 '19 16:12 lovasoa

@lovasoa

Thank you for your reply. I created new issue

alu avatar Dec 10 '19 17:12 alu

More sample issues triggering this behavior can be found in https://github.com/image-rs/image/issues/1234

Shnatsel avatar Jun 05 '20 17:06 Shnatsel

FWIW this is the only error triggered on the archive.org wallhaven dataset, which is the largest easily downloadable dataset of real-world images I could find (100,000 files, 76Gb).

There are also machine learning datasets, but those tend to be heavily preprocessed so they don't show much variance in encoding options.

Shnatsel avatar Jun 07 '20 16:06 Shnatsel