xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hardy <vincent.ha...@sun.com>
Subject Re: JPEG - image color
Date Mon, 15 Oct 2001 07:19:11 GMT
Bala,

Bala Bharathan wrote:
> 
> Hello -
> 
> Is there any control over the color characteristics of the JPEG generated
> from SVG ?  

There is no simple way today. The JPEG encoding control is made in
the org.apache.batik.transcoder.image.JPEGTranscoder and it does not
give anyway to control the encoding operation today. I have entered
a bug in Bugzilla for that:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4161

In the meanwhile, you can extend the JPEGTranscoder class and 
set the JPEGEncodeParam the way you like: this will let you set
the JPEG encoding the way you want. See:

http://java.sun.com/j2se/1.3/docs/guide/2d/api-jpeg/index.html

Thanks,
Vincent.

> I find the generated image has the color depth of 24bits.
> However, JPEG standards could have different color depth such as 1bit,
> 8bits.
> 
>  -- Bala
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

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


Mime
View raw message