Hi sorry for "mailbombing" this forum, but I am in real stress to accomplish
my task.

I have created a TIFF-image by converting a svg-file(called Image.xml)
to a TIFF :

// create a JPEG transcoder
TIFFTranscoder transcoder = new TIFFTranscoder();

// create the transcoder input
String svgURI = new File("Image.xml").toURL().toString();
TranscoderInput input = new TranscoderInput(svgURI);

// create the transcoder output
OutputStream ostream = new FileOutputStream("Image.tif");
TranscoderOutput output = new TranscoderOutput(ostream);

// save the image
transcoder.transcode(input, output);

My problem is that the image is WAY to big in bytesize (4GB..).
I would need to compress it to app. max 50 000 bytes.
How do I compress this image as MUCH as possible ?

I have looked at "org.apache.batik.ext.awt.image.codec.tiff",
where I can compress the image,but I don't know how to "glue" this together
with my created image ?

Probably I have to do some manipulating with the transcoder before
transcoding the image ?

Thanks in advance !
/Gergely



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to