xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alps <alpesh.par...@c-sam.co.in>
Subject Re: GIF .... + Image Size Compression and Quality Control.
Date Wed, 21 Jun 2006 06:36:18 GMT


Thanks thomas for the reply, 

As described, i m using Batik+java2D for transcoding SVG images to different
formats - JPEG/PNG/GIF/BMP. During process, i found the image (PNG &JPEG)
size increased badly and quality failed too. The images i am working on are
within RGB color space with some gradience. For maintaining the quality and
decrease optimal size, i tried the following approaches: 

1. SVG document rendering properties - this did not proved useful in my case 

2. java2D Rendering hints like INTERPOLATION, RENDERING - when applied to
BufferedImage creation from a SVG document, this helped in image size
reduction irrespective of further encoding params. 

3. BufferedImage encoding params (JpegEncodeParam, PngEncodeParam) - i found
default encoder (PNGEncoder/JpegEncoder..) setting optimal. Setting explicit
encoding params for size reduction with quality control, did not work like
for e.g. unsetting chromaticity, pallete etc. 

+ i found the java.awt.image encoder for PNG and JPEG optimal among
available codecs. 

The requirement is to still look over the image (PNG/JPEG) size reduction
but maintaining quality. Are some other ways enabling in image size
reduction and compression along with above described alternatives, 


View this message in context: http://www.nabble.com/GIF-Transcoding-and-Transcoding-Hints.-t1797093.html#a4968876
Sent from the Batik - Users forum at Nabble.com.

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message