AppliedGo / comments

Utteranc.es comments for appliedgo.net
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

imageprocessing #11

Open christophberger opened 1 year ago

christophberger commented 1 year ago

Written on 02/25/2017 15:27:00

URL: https://appliedgo.net/imageprocessing/

christophberger commented 1 year ago

Migrated comment, written by aeony on 04/19/2017 13:01:54

If you use this image with the openImage method, it will fail. Any idea why?
http://imgur.com/a/mUZ11

christophberger commented 1 year ago

Migrated comment, written by Christoph on 04/20/2017 08:03:33

What error message do you get?

christophberger commented 1 year ago

Migrated comment, written by aeony on 04/20/2017 12:31:05

unsupported JPEG feature: luma/chroma subsampling ratio

christophberger commented 1 year ago

Migrated comment, written by Christoph on 04/20/2017 13:14:08

This might indicate that the image uses a "luma/chroma subsampling ratio" that is at least uncommon (or perhaps even invalid). When I run exiftool on your image, it reports "Y Cb Cr Sub Sampling: Unknown (2 3)", whereas for all other .jpg images in my Download folder it reports values like "YCbCr4:2:0 (2 2)" or "YCbCr4:4:4 (1 1)" rather than "Unknown...". My guess is that jpeg.Decode() cannot handle unknown subsampling ratios at all and hence errors out (rather than trying to decode the image anyway).

Maybe you can make the image compatible with jpeg.Decode() by opening it in an image editor and saving the image as a new JPEG file. The image editor might then apply a different chroma subsampling setting that works with jpeg.Decode().