mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-27 00:00:02 -04:00
#401 #334 Work around for stream position issue in FileCacheImageOutputStream causing garbled output for multipage TIFF files
+ Added regression tests.
This commit is contained in:
+2
-2
@@ -947,9 +947,9 @@ public final class TIFFImageWriter extends ImageWriterBase {
|
||||
throw new IllegalStateException("prepareWriteSequence() must be called before writeToSequence()!");
|
||||
}
|
||||
|
||||
if (sequenceLastIFDPos > 0) {
|
||||
imageOutput.seek(imageOutput.length());
|
||||
if (sequenceIndex > 0) {
|
||||
imageOutput.flushBefore(sequenceLastIFDPos);
|
||||
imageOutput.seek(imageOutput.length());
|
||||
}
|
||||
|
||||
sequenceLastIFDPos = writePage(sequenceIndex++, image, param, sequenceTIFFWriter, sequenceLastIFDPos);
|
||||
|
||||
Reference in New Issue
Block a user