You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Jan <vi...@gmx.de> on 2001/06/05 23:20:33 UTC

colors should be much more intensive for #B3371F?!

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: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: colors should be much more intensive for #B3371F?!

Posted by Peter Becker <pb...@meganesia.int.gu.edu.au>.
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: 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


Re: colors should be much more intensive for #B3371F?!

Posted by Thierry Kormann <tk...@sophia.inria.fr>.
On Tuesday 05 June 2001 23:20, 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>

I don't remember if you already get the answer. Anyway, the bright is due to 
the gamma factor of the PNGTranscoder (something that has been/will be fixed 
I think) and the thin line if also a bug that has been fixed by thomas 
yesterday or today I think.

Thierry.


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