You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #22. I'm trying to read a tif or png file and get a conversion error. I've attached two sample images I just created in Photoshop.
I originally tried to read a grayscale image which didn't work either. I ended up trying a bunch of formats and color spaces and using readImage doesn't make a difference.
Using stack resolver: lts-14.14
:> readImageAuto "test.png"::IO (ImageSRGBWord16)
ArrayS***Exception:ConvertError"Cannot decode Auto PNG image <Image S RGB Word16> as <Image S RGB Word16>":> readImageAuto "test.tiff"::IO (ImageSRGBWord16)
ArrayS***Exception:ConvertError"Cannot decode Auto TIF image <Image S RGB Word16> as <Image S RGB Word16>"
I wish JuicyPixels just used Storable instances like everyone else, but no, there is a custom mechanism for dealing with multiple channels. In any case, that was my fault, thank you for spotting the mistake, it should be fixed now. I'll make a release a little bit later today, so new version will be in the next LTS.
Oh, and the error message was pretty stupid. That part will get much better in the next major release of massiv-io, which will happen hopefully not too far into the future.
Similar to #22. I'm trying to read a tif or png file and get a conversion error. I've attached two sample images I just created in Photoshop.
I originally tried to read a grayscale image which didn't work either. I ended up trying a bunch of formats and color spaces and using
readImage
doesn't make a difference.Using stack resolver: lts-14.14
test-tif-and-png.zip
The text was updated successfully, but these errors were encountered: