I've run into this same issue which is a show stopper.
In my My Font Image Generator (
http://interactimage.com), I set up a flash overlay in a <DIV> layer directly above a text image generated by IM. This is using a little widget called InputDraw. The widget provides a transparent drawing canvas where you can freehand annotate lower layers. It outputs the markup as a full SVG file. Next, I would merge the markup with the original image in IM.
Here is an example markup SVG file with a single path:
- Code: Select all
<svg viewBox="0 0 480 320" xmlns="http://www.w3.org/2000/svg" version="1.1"><g fill="none" stroke-miterlimit="6" stroke-linecap="round"><path d="M 84 44 l -1 -1 l -1 0 l -1 0 l -1 0 l -2 0 l -1 0 l -1 1 l -1 0 l -1 2 l -1 0 l 0 1 l -1 1 l 0 1 l 0 1 l 0 1 l 0 2 l 0 1 l 0 1 l 0 2 l 0 1 l 0 1 l 1 0 l 1 0 l 3 0 l 2 0 l 1 0 l 1 0 l 1 0 l 1 0 l 1 0" opacity="1" stroke="rgb(1,1,1)" stroke-width="2"/></g></svg>
The file validates successfully as SVG 1.1 at W3c
If I save the SVG and then reload it back into IM and convert to transparent PNG, it fills the path. IM interprets fill="none" as fill="black" in the above example. I can manually change the fill="" in the SVG to any color but can't get transparent.
I dont see any mention of an RSVG renderer in the report below generated with
-list format | grep SVG- Code: Select all
MSVG* SVG rw+ ImageMagick's own SVG internal renderer SVG*
SVG rw+ Scalable Vector Graphics (XML 2.6.23) SVGZ*
SVG rw+ Compressed Scalable Vector Graphics (XML 2.6.23)
If I load the same SVG file into Inkscape, it renders correctly.
Next I generated a similar single-path image in Inkscape. That image is handled correctly by IM.
I took the path style instruction from the Inkscape SVG and pasted into the SVG generated by InputDraw and IM handled the original image correctly as well.
I suppose I could tweak the XML to be IM friendly before saving it but better to fix the problem.
I'm on a shared server and have no control over the ver. 6.4.1 Imagemagick installation.
I contacted the author of InputDraw but no response yet.
Any input or suggestions?
~Jeff