Twinside / Juicy.Pixels

Haskell library to load & save pictures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to read RGB JPEGs

sdroege opened this issue · comments

test

The attached JPEG fails to be read currently, resulting in the descriptive error "Prelude.(!!): index too large" 😄 I assume this is because RGB is not supported yet in the JPEG loading code.

Other than supporting RGB, it would also be good to catch this error earlier with something more descriptive

I fixed the crash, it decode the image, but take it as YCbCr instead of RGB. I will fix this problem tonight.

Great, thanks :)