-
Notifications
You must be signed in to change notification settings - Fork 0
Image::convertToBufferedImage is indeterministic #4
Comments
Alternate implementation of ImageIO::read may fail on images where orginal impl works. The same scheme could be applied and tested when creating the ImageInputStream object. Also seems to depend on the Version of JRE version used. Sometimes reading jpg images with Jdk1.8.0_102 works, in other cases only with Jdk1.8.0_121 (confirmed for BenthamClean set). |
Issue is probably related to incompatibilities between JAI and the twelvemonkeys ImageIO plugins. See haraldk/TwelveMonkeys#433
|
Relying only on the twelvemonkeys ImageIO impl for now. Interoperability with the default ImageIO implementation seems to be fixed in version 3.4 of the lib though. |
This behavior seems to result from ImageIO internals and can be reproduced with images where only specific readers (from those that claim to be able to read the source) work as expected, e.g. on JPEG compressed images with "tif" filename extensions. See eu.transkribus.interfaces.types.ImageTest::testFromUrlToBufferedImage
Findings so far:
Steps taken so far:
The text was updated successfully, but these errors were encountered: