Closed sroettering closed 1 month ago
Hi @sroettering
Sorry about the delayed response, I've been busy celebrating national holidays and enjoying spring time away from the IDE... 😉
Thanks for reporting! I'm not sure if Java 2D has a good way of storing 64 bit FP (Java: double
) samples... But if the JDK TIFF plugin supports that, there must be a way. 😀
I'll look into it!
I think I figured it out, just needed a few extra methods, but the main code seems to work fine for 64 bit FP.
However, the resulting image doesn't look exactly like the one from the JDK TIFF plugin... Unfortunately, I have no other tools that can process/display this image and no knowledge of what it's supposed to resemble. But at least it can be read:
JDK TIFF plugin:
TwelveMonkeys TIFF plugin:
Wow great to hear! I will give it a try when I find the time, thanks.
Fixed in 3e7ad05
Describe the bug When reading the attached tiff file I get the error already stated in the issue title. Here is the complete stacktrace:
Image is in this zip file since Github says it does not support tiff. analysisTiff.tif.zip
Version information
To Reproduce Steps to reproduce the behavior:
The following code already throws the error:
Expected behavior The attached file can be read without problems.
I just added the twelvemonkeys tiff plugin today and one of our tests broke because the tiff could not be read anymore. Without the plugin ImageIO was able to read it. However, I need the plugin for another usecase to work correctly.
Bit of context that may be useful: In the agricultural sector (geo)tiffs are often used to transport/encode information that might not always be used to be viewed directly but analyzed or transformed further. As is in this case I need to create a grayscale image from the input tiff.