This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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
  • 0
  • 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
Pie
Posts: 42966
73
  • 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: 4660
5
Linux Mac OS X VI Editor
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf. That really helped a lot!

Regards,
Shouvanik
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic