dragon66 / icafe

Java library for reading, writing, converting and manipulating images and metadata
Eclipse Public License 1.0
204 stars 58 forks source link

How to covert tif to jpeg use icafe? Thanks.. #35

Closed Norman-else closed 8 years ago

Norman-else commented 8 years ago

How to covert tif to jpeg use icafe? Thanks..

dragon66 commented 8 years ago

@ilvZuo To convert TIFF to JPEG, you need first read it into a BufferedImage and write it in JPEG format. ICAFE currently partially support reading TIFF and if you find it couldn't read your TIFF, use the included jai-imageio library to read it and use icafe to save as JPEG. Take a look at this example. It basically does what you want: read in the image and save it as a different format.