Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #375

Re: TIFF handling in Imag

From "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this>
Subject Re: TIFF handling in Imag
Message-ID <newscache$7yy5aj$4j2$1@news.ops.de> (permalink)
Newsgroups comp.lang.java.gui
References <1165916940.389563.137380@16g2000cwy.googlegroups.com>
Date 2011-04-27 15:27 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
pjaganathan@gmail.com wrote:
> 
> I am trying to covert a tiff to jpeg image. I am able to do that using
> ImageIO but reading multi page tiff converts only the first page to
> jpeg image. I need to be able to pass page number and get only that
> page converted. Anyone has some idea how do it?
> 
> Here is the code...
> 
> File JpgFile = new File("c://mony.jpg");
> BufferedImage bufi = ImageIO.read(new File("c://mony.tiff"));
> ImageIO.write(bufi,"jpg",JpgFile );   

I once read the images from a multi-frame-GIF (aka animated GIF) by ImageIO.
Hence I guess the same technic applies for reading the images from a
multi-page-TIFF. For details see my answer at 
<http://groups.google.de/group/comp.lang.java.programmer/msg/2b0dd609cdcd517f>

-- 
Thomas

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar


Thread

Re: TIFF handling in Imag "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000

csiph-web