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 :

// 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]

Reply via email to