The JPEG standard does not allow lossy compression when working with 16-bit data. As a result, 16-bit lossy compression is not supported by IMWRITE.
To work around this issue, use 16-bit lossless compression or convert the data to 8-bit and then use 8-bit lossy compression with IMWRITE.
Best Answer