mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 20:15:28 -04:00
#183: Fix failing tests after merge.
This commit is contained in:
parent
c33cfea02c
commit
8379f08d78
@ -72,6 +72,7 @@ public final class TIFFImageWriter extends ImageWriterBase {
|
|||||||
// TODO: Support more of the ImageIO metadata (ie. compression from metadata, etc)
|
// TODO: Support more of the ImageIO metadata (ie. compression from metadata, etc)
|
||||||
|
|
||||||
// Long term
|
// Long term
|
||||||
|
// TODO: Support writing multipage TIFFs using canWriteSequence/prepareWriteSequence/writeToSequence/endWriteSequence
|
||||||
// TODO: Support tiling
|
// TODO: Support tiling
|
||||||
// TODO: Support thumbnails
|
// TODO: Support thumbnails
|
||||||
// TODO: Support CCITT Modified Huffman compression (2)
|
// TODO: Support CCITT Modified Huffman compression (2)
|
||||||
@ -244,7 +245,7 @@ public final class TIFFImageWriter extends ImageWriterBase {
|
|||||||
// Write compression field from param or metadata
|
// Write compression field from param or metadata
|
||||||
int compression;
|
int compression;
|
||||||
if ((param == null || param.getCompressionMode() == TIFFImageWriteParam.MODE_COPY_FROM_METADATA)
|
if ((param == null || param.getCompressionMode() == TIFFImageWriteParam.MODE_COPY_FROM_METADATA)
|
||||||
&& image.getMetadata() != null) {
|
&& image.getMetadata() != null && metadata.getIFD().getEntryById(TIFF.TAG_COMPRESSION) != null) {
|
||||||
compression = (int) metadata.getIFD().getEntryById(TIFF.TAG_COMPRESSION).getValue();
|
compression = (int) metadata.getIFD().getEntryById(TIFF.TAG_COMPRESSION).getValue();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user