This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

.tif to .jpg convert?  RSS feed

 
sujith delpachithra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am having in a trouble with converting a .tiff file to .jpg. if any one know a way, please let me know?
 
siddhu Math
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you let me know what for you need to convert tiff to JPG ?

....as if you only want the tiff images to be displayed on to the explorer directly then you can do it by incooperating the tiff plugin into your browser.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
....as if you only want the tiff images to be displayed on to the explorer directly then you can do it by incooperating the tiff plugin into your browser.

That would be a bad solution, as the TIFF plugin is not available for most browsers.

But the original question wasn't about web apps, and there are good reasons why one might want to convert a TIFF to a JPEG. The javax.imageio.ImageIO class makes this quite easy - it can read and write images in various formats. See examples e694 and e695 here for code that does exactly that.

The only complication is that ImageIO doesn't support TIFF out of the box. You need to download TIFF support from here -version 1.1 is fine- and keep the jar file in your classpath.
 
Roshnikanta Sharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[ UD: Please do not hijack a topic with unrelated posts. ]
[ December 30, 2008: Message edited by: Ulf Dittmer ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!