From a1de9ff4489636aacf1fe5889e0b7fab9f4f0ef7 Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Thu, 11 Feb 2016 16:49:50 +0100 Subject: [PATCH] #220 PlanarConfiguration now default to 1 (Chunky) according to the TIFF 6.0 spec. --- .../com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageio/imageio-tiff/src/main/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReader.java b/imageio/imageio-tiff/src/main/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReader.java index 47195b39..557ad840 100755 --- a/imageio/imageio-tiff/src/main/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReader.java +++ b/imageio/imageio-tiff/src/main/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReader.java @@ -314,7 +314,7 @@ public class TIFFImageReader extends ImageReaderBase { readIFD(imageIndex); int sampleFormat = getSampleFormat(); - int planarConfiguration = getValueAsIntWithDefault(TIFF.TAG_PLANAR_CONFIGURATION, TIFFExtension.PLANARCONFIG_PLANAR); + int planarConfiguration = getValueAsIntWithDefault(TIFF.TAG_PLANAR_CONFIGURATION, TIFFBaseline.PLANARCONFIG_CHUNKY); int interpretation = getValueAsInt(TIFF.TAG_PHOTOMETRIC_INTERPRETATION, "PhotometricInterpretation"); int samplesPerPixel = getValueAsIntWithDefault(TIFF.TAG_SAMPLES_PER_PIXEL, 1); int bitsPerSample = getBitsPerSample();