330: int photometricType = (int)dir.getFieldAsLong(TIFFImageDecoder.TIFF_PHOTOMETRIC_INTERPRETATION); Image has no field with tag "TIFFImageDecoder.TIFF_PHOTOMETRIC_INTERPRETATION". I use next workaround: int photometricType; TIFFField photometricTypeField = dir.getField(TIFFImageDecoder.TIFF_PHOTOMETRIC_INTERPRETATION); // Get the photometric interpretation. if (photometricTypeField == null) photometricType = 0; // White is zero else photometricType = photometricTypeField.getAsInt(0);
Suggested work-around implemented. Thank you! http://svn.apache.org/viewvc?rev=582858&view=rev