Java API to convert JPEG to TIFF

怎甘沉沦 提交于 2019-11-30 02:16:26

问题


I am looking at java APIs to convert JPEG file streams to TIFF files. I looked at the JAI but did not find something similar to what i am looking at.

Can someone point me to a good API which does this ?


回答1:


There's an example here

http://log.robmeek.com/2005/08/write-tiff-in-java.html

and another here

Tiff compression using Java ImageIO




回答2:


ImageMagick has a Java api available




回答3:


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




回答4:


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.




回答5:


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




回答6:


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



来源:https://stackoverflow.com/questions/967557/java-api-to-convert-jpeg-to-tiff

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