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
The attached TIFFs use Lab colors and one extra sample for unassociated alpha.
Both cause exceptions in TIFFImageReader.normalizeColor() in line 2251 or 2335 for 8 and 16 bits per channel respectively.
In both cases changing the step of the surrounding for-loop (line 2243 and 2327 respectively) from 3 to 4 fixes the issue.
So I assume the step of the for-loops in that method must include the extras samples of the image being read.
Please see the attachment.
The attached TIFFs use Lab colors and one extra sample for unassociated alpha.
Both cause exceptions in TIFFImageReader.normalizeColor() in line 2251 or 2335 for 8 and 16 bits per channel respectively.
In both cases changing the step of the surrounding for-loop (line 2243 and 2327 respectively) from 3 to 4 fixes the issue.
So I assume the step of the for-loops in that method must include the extras samples of the image being read.
Please see the attachment.
TwelveMonkeys/imageio/imageio-tiff/src/main/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReader.java
Lines 2243 to 2251 in b7d865f
TwelveMonkeys/imageio/imageio-tiff/src/main/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReader.java
Lines 2327 to 2335 in b7d865f
The text was updated successfully, but these errors were encountered: