• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

.tif to .jpg convert?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[ UD: Please do not hijack a topic with unrelated posts. ]
[ December 30, 2008: Message edited by: Ulf Dittmer ]
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic