Hi, I am trying to use apache-commons-imaging to write 16-bit greyscale TIFF images. However, the TIFF writer appears to be incorrect. Based on the compression type you get either:
samplesPerPixel = 3 bitsPerSample = 8 photometricInterpretation = 2 (RGB image) or samplesPerPixel = 1 bitsPerSample = 1 photometricInterpretation = 0 (bitmap image) Neither of which is correct for a 16-bit greyscale image (the BufferedImage passed in uses TYPE_USHORT_GRAY) which should be: samplesPerPixel = 1 bitsPerSample = 16 photometricInterpretation = 1 (or possibly zero, but minIsBlack is probably the better default)