• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shouvanik Haldar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf. That really helped a lot!

Regards,
Shouvanik
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic