Hi Thomas, Sorry, but I can't find the contribution where the TileImageTranscoder is. The only "contributor" area I find, is the one with the Batik Committers (http://xml.apache.org/batik/whoAreWe.html).
Regards /Gergely -----Original Message----- From: Thomas DeWeese [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 11:31 AM To: Batik Users Subject: Re: How to use "org.apache.batik.ext.awt.image.codec.tiff " ? Gergely Hajdu wrote: > I am using the org.apache.batik.transcoder and > org.apache.batik.transcoder.image > packages to create TIFF-images.I wonder how to > combine these with org.apache.batik.ext.awt.image.codec.tiff > packages to compress the TIFF-image I am about > to create. In this code snippet, "Images/Template.svg" is the > file that will be created as a TIFF-image.My code, so far : Hi Gergely, As I think I said when you first asked about Compressed Tiffs you will be better off using the tileImageTranscoder from the contrib area of Batik. This directly exposes the Tiff encoder so you can add the TiffEncodeParam you want. It also directly exposes the width/height of the image. It also rasterizes the image in chunks so you don't need 2GB of ram to raserize large images. It doesn't have all the funky switches that the normal transcoders have. > > // create a JPEG transcoder > TIFFTranscoder transcoder = new TIFFTranscoder(); > // create the transcoder input > String svgURI = new File("Images/Template.svg").toURL().toString(); > TranscoderInput input = new TranscoderInput(svgURI); > > // create the transcoder output > OutputStream ostream = new FileOutputStream("Archived_Images/Template.tif"); > TranscoderOutput output = new TranscoderOutput(ostream); > /* HERE I WOULD LIKE TO INCLUDE CODE FOR DOING COMPRESSION, USING CLASSES > FROM org.apache.batik.ext.awt.image.codec.tiff package. BUT I JUST DON'T > KNOW > WHAT TO WRITE */ > // save the image > transcoder.transcode(input, output); > Thanks in advance > /Gergely > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]