aspose file tools*
The moose likes I/O and Streams and the fly likes How to convert from a JPEG format to a TIFF format and vice versa Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "How to convert from a JPEG format to a TIFF format and vice versa" Watch "How to convert from a JPEG format to a TIFF format and vice versa" New topic
Author

How to convert from a JPEG format to a TIFF format and vice versa

Shouvanik Haldar
Greenhorn

Joined: Jun 16, 2010
Posts: 19
Hi,

Can anybody help me with this?

I am looking for java apis or code to convert between a JPEG format and TIFF format?

Regards,
Shouvanik


Shouvanik Haldar
SCJP 1.5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41798
    
  62
That's what javax.imageio.ImageIO does. You need to add TIFF support it as described in http://www.coderanch.com/t/445956/open-source/add-tiff-writer-imageio-package.


Ping & DNS - my free Android networking tools app
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4655
    
    5

Which direction do you need?

Be warned, TIFF is not really a format. TIFF stands for Tagged Image File Format. Its really a wrapper for any of a huge number of file formats, each "tagged" to tell the processing code what it really is.

Usually, files you need to process 'in' are in one of the common 'tag' formats, so the usual tools do a great job going to JPEG. Its the output side that requires more careful specification.

In general, I would not try to do this in Java. I'd simply use ImageMagick, a wonderful open source, multi-platform tool that can convert nearly anything to anything.
Shouvanik Haldar
Greenhorn

Joined: Jun 16, 2010
Posts: 19
Thanks Ulf. That really helped a lot!

Regards,
Shouvanik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert from a JPEG format to a TIFF format and vice versa