Java API to convert JPEG to TIFF

拈花ヽ惹草 提交于 2019-11-30 18:18:26

ImageMagick has a Java api available

The javax.imageio package has built-in writers for most of the popular image types, including jpg and tiff. Here's Sun's page on imageio.

http://java.sun.com/javase/6/docs/technotes/guides/imageio/index.html

JIMI is quite easy to use. http://java.sun.com/products/jimi/

Unfortunately Sun transmogriffed it into Java2D (afair) and THAT is not quite that easy to use.

For a quick solution, use JIMI.

JAVA JAI does support encoding/decoding TIFF. You need to get the image codecs (<--link) and call them like ImageDecoder decoder = ImageCodec.createImageDecoder("tiff", seekableStream, null);

JAI (Java Advanced Imaging) is the best solution. It has a decoder and encoder for TIFF files.

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