Hello Jan,
it seems you are running into the same problems I had ;-) IMHO both are bugs in
Batik, try these patches:
org.apache.batik.gvt.renderer.StaticRenderer, line 422/423: change +0.5f into
-0.5f -> should get rid of the edges
org.apache.batik.transcoger.image.PNGImageTranscoder, line 63: uncomment the
setGamma command -> removes the color problem
Another workaround is to use JPEGs instead (I assume you generate PNGs) or to
not use browsers that support gamma ;-)
One of the classfiles can be found here:
http://sourceforge.net/tracker/index.php?func=detail&aid=428271&group_id=25147&atid=383575
I can upload the other one, too.
HTH,
PeterB
Jan wrote:
> I am using Batik with Cocoon2.
> Comparing the generated image with the #B3371F colored environment the image
> is much too bright.. furthermore the very top and very left line is
> background colored and I can't help it.. is that a problem of mine only?
>
> Thx,
> Jan.
>
> <svg:svg width="160" height="16" viewBox="0 0 160 16">
> <svg:rect width="100%" height="100%" style="fill: #B3371F"/>
> </svg:text>
> </svg:svg>
>
> ---------------------------------------------------------------------
> 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]