I have a script that takes a piece of clip art on the server, resizes it and
changes the color with imagemagick, and then outputs the new image to the
browser. I've embedded some of the resulting images in my SVG document using
the following tag:

<image
xlink:href="http://mydomain.com/clipart.php?i=ca_someimage&amp;c=00a650&amp;
w=156.95&amp;h=191.35" x="0" y="0" width="156.95" height="191.35" />

Basically that outputs an image that is about 156x191, with a color of
#00a650. I don't know if the floating point dimension sizes is bad, but it
seems to work ok. It takes a little while for the image to pop up in the SVG
document, since imagemagick has to do its thing each time, but it eventually
shows up just fine.

When I use batik-rasterizer to rasterize the SVG to a JPG, the image shows
up in the correct location at the correct size, but the colors are all
psychadelic. Does anyone have any idea what might cause this?  The
clipart.php script outputs the image in PNG format, if that matters.

Thanks,

Rob Hinst


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

Reply via email to