Hi,

thanks for the fast answer, Thomas:-) I think you're right. the images have CSS 
style sheets. Is it possible to convert the images automatically to non-css 
images? This is important, because I don't have any influence over the input 
files.

in the attachment is one of the test input svgs. 

thank you,
Guido

--
on Wednesday, February 23, 2005, at 4:15:02 PM, you wrote:

TD> Guido Kämper wrote:

>> i've experimented a little bit with the batik libraries and it's really
>> great, how easy you can achive the first results :-)
>> 
>> My sourcecode below merges two images from JSVGCanvas svg1, svg2 to
>> svgResult. The images have the same structure, but different colors
>> and text. in the mixed image only the colors of the second image are
>> used. It looks like a mixture of two 256 color images in old Windows
>> 3.11 times :-(
>> 
>> Does SVG use palette colors or why do i get those errors? 

TD>     Batik does not use palette colors, everything is 24bit color with
TD> an 8bit alpha channel.  My best guess is that there is some conflict
TD> between the two documents you are trying to merge, for example if
TD> they are using CSS classes to set color/style properties and the
TD> class names are replicated between the two documents you might have
TD> problems like this.

TD>     Providing the content in question might help solve the problem,
TD> or a standalone test case.

>> Did anybody solve this problem yet? 
>> Is there any way to force SVGs to use direct color codes like 
>> #FF45F3 instead of names?

TD>     Sure:
TD>     <rect fill="#FF45F3" .../>        -or-
TD>          <rect style="fill:#FF45F3" .../>
TD>     Both work.

TD>     So far I suspect the problem is with your content not with Batik.

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


-- 
cu,
 Guido                            mailto:[EMAIL PROTECTED]

Attachment: gra1.svg
Description: Binary data

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

Reply via email to