Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.2
-
None
-
None
-
Operating System: All
Platform: All
Description
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);