Closed iitalics closed 3 years ago
The invocation I'm using to read is ImageLib_unix.openfile "<filename>.png"
, and I just installed this library after a recent OPAM update so I should have new versions:
$ opam install imagelib
The following actions will be performed:
- install optint 0.1.0 [required by decompress]
- install checkseum 0.3.1 [required by decompress]
- install decompress 1.4.0 [required by imagelib]
- install imagelib 20210402
Does it work if you do opam install decompress.1.3.0
? I think the latest decompress released yesterday may have introduced some breaking changes
I am getting the same error (PNG.Zlib:Invalid complement of length
) on my images.
Downgrading decompress to 1.3.0
did not help.
Here is the debug log of my error:
//cc @dinosaure @clecat who may be interested in zlib/decompress issues
Hi, thanks I will try to find times to find where is the bug :+1:.
After a try, it seems that the error is about how we use decompress
instead of decompress
itself which is a good news :+1: - that mostly means that a release of it is not really needed.
Really sorry for the disturb... I inserted a bug on the implementation of imagelib
. I proposed a simple fix on #52 and all of your images should be fine :tada:.
@rlepigre should I make the release or you plan to do it?
You can go ahead and do it if you want @mseri. (I would probably mess it up since I have not made one in a while.)
👍 done
Hello. I'm interested in using this library for some simple loading PNG images into memory. However I'm encountering a lot of
Currpoted_image
exceptions on images that seem perfectly valid to other image readers. I really am not an expert on the PNG file format so I can't say much of why these images might not be working but it's coming as a surprise to me that I get zlib failures for various innocuous files on my computer.Here are three such images that do not work:
Fatal error: exception Image.Corrupted_image("PNG.Zlib:Invalid complement of length")
Fatal error: exception Image.Corrupted_image("PNG.Zlib:Invalid kind of block")
Fatal error: exception Image.Corrupted_image("PNG.Zlib:Invalid dictionary")
(sorry for the weird images, I was just picking random ones from my downloads folder)