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
In the case of re-encoding a CCITT compressed TIFF, with metadata from the original, the G3/G4 options may not be a long value as the writer expects, thus causing a ClassCastException.
Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at com.twelvemonkeys.imageio.plugins.tiff.TIFFImageWriter.createCompressorStream(TIFFImageWriter.java:578)
at com.twelvemonkeys.imageio.plugins.tiff.TIFFImageWriter.writePage(TIFFImageWriter.java:430)
at com.twelvemonkeys.imageio.plugins.tiff.TIFFImageWriter.writeToSequence(TIFFImageWriter.java:975)
In the case of re-encoding a CCITT compressed TIFF, with metadata from the original, the G3/G4 options may not be a long value as the writer expects, thus causing a ClassCastException.
See #310 for background and sample images.
Full stack trace:
Easily fixed by changing the line in question to:
The text was updated successfully, but these errors were encountered: