Here is a pretty simple SVG file, which does get validated by the W3C validator:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg SYSTEM "svg10.dtd">
<svg x="0" y="0" width="91" height="185">
<defs>
<linearGradient id="MASTERGRADIENT_0_" x1="0%" y1="50%" x2="100%" y2="50%" gradientUnits="objectBoundingBox">
<stop offset="0%" stop-color="#FF0000"/>
<stop offset="20%" stop-color="#FF7F00"/>
<stop offset="40%" stop-color="#FFBF00"/>
<stop offset="59%" stop-color="#73F80F"/>
<stop offset="81%" stop-color="#00A0C6"/>
<stop offset="100%" stop-color="#4210D2"/>
</linearGradient>
</defs>
<g>
<linearGradient id="GRADIENT_LINK_0_" xlink:href="#MASTERGRADIENT_0_" gradientUnits="userSpaceOnUse" x1="0.500" y1="91.833" x2="89.833" y2="91.833">
</linearGradient>
<path style="fill:url(#GRADIENT_LINK_0_);stroke:#000000;" d=" M89.83,183.17 C89.83,183.17 0.50,183.17 0.50,183.17 C0.50,183.17 0.50,0.50 0.50,0.50 C0.50,0.50 89.83,0.50 89.83,0.50 C89.83,0.50 89.83,183.17 89.83,183.17"/>
</g>
</svg>
This file is not displayed with ImageMagick’s imdisplay. Why? The error given is: IMDisplayDoc function[DoReadImage] encountered an error. imdisplay.exe: Non-conforming drawing primitive definition 'fill'.
The ImageMagick version is 6.2.4.
SVG File
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
- Contact:
Re: SVG File
neither dos RSVG display it!!!
[quote user=rsvg-view]Error displaying image: Error parsing XML data[/quote]
The <path> element with the fill() does not look quite right to me, but then I have not coded in SVG much either. I'm just an experienced programmer.
[quote user=rsvg-view]Error displaying image: Error parsing XML data[/quote]
The <path> element with the fill() does not look quite right to me, but then I have not coded in SVG much either. I'm just an experienced programmer.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: SVG File
I am not an SVG programmer either. So I went to a ‘higher authority’, like the W3C organization. They have an SVG Validator: http://www.w3.org/2003/08/qh-d22-p2.htm#Project3. This validator says that the above SVG file is fine. It has no errors or warnings.anthony wrote: neither dos RSVG display it!!!Error displaying image: Error parsing XML data
The <path> element with the fill() does not look quite right to me, but then I have not coded in SVG much either. I'm just an experienced programmer.
Re: SVG File
We rendered your image with both the internal ImageMagick renderer and the external (libRSVG). The problem is of course that ImageMagick has 90% of the gradient support for SVG in place but we have yet to finish the last 10%. So until we get that done your image will not render correctly anyway. We recommend you seek another solution until we complete gradient support for SVG within ImageMagick.
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 12 guests