Write 16bit greyscale TIFF is not correct/supported

2021-05-28 Thread Rick Harding
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 bitsPerSamp

Write of 16bit greyscale TIFF is not correct/supported

2021-05-28 Thread Rick Harding
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 bitsPerSamp