How to achieve jpeg-lossess in Java?
ImageWriter writer = (ImageWriter) ImageIO.getImageWritersByFormatName(\"JPEG-LS\").next(); ImageWriteParam param = writ
The first code snippet has a typo:
param.setCompressionType("JPEG-lS");
It has to be
param.setCompressionType("JPEG-LS");
(all upper case). I think it is otherwise correct and should work.
To query possible types, use param.getCompressionTypes() (as noted in a comment).
param.getCompressionTypes()