How to achieve jpeg lossless?

六月ゝ 毕业季﹏ 提交于 2019-11-28 11:46:31

Standard java does not have a compression type for JPEG-LS.

You can to download and use the JAI (Java Advanced Imaging) API though which I beleive includes such a compression type.

Can be downloaded from here

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).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!