Closed KidA001 closed 1 month ago
Same problem here. Have you found any solution?
I'm also getting the same issue.
ImageMagick -v 6.8.9-9 Q16 x86_64
Rmagick -v 2.16.0
Ruby -v 2.3.1p112
Ubuntu 16.04
Got the same issue:
require 'rvg/rvg'
image = Magick::RVG.new(100, 100)
image.draw.write "image.svg"
Produces
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="100" height="100">
<g style="<defs>
<clipPath id="push">
</svg>
That's ImageMagick 7.0.11-13
and rmagick 4.2.2
.
Has anyone found a solution for this? The same happens with to_blob
.
This is similar with https://github.com/rmagick/rmagick/issues/226
This problem should be reported to ImageMagick. The broken file is saved when SVG is processed and saved with ImageMagick commands.
convert -density 100 -background none Ghostscript_Tiger.svg test.svg
As long as ImageMagick cannot save correctly, RMagick cannot save correctly either
As an example, I'm using the code from this tutorial, except I'm saving the file as
duck.svg
instead ofduck.gif
.When I try to open the SVG file in an any image viewer that supports SVG, I get this error:
Line 5: Error: Couldn't find end of Start Tag g
. This happens with any SVG file I try and createHere's the XML of the SVG File:
It looks like it's not creating the tags properly.
rmagick gem version 2.16.0
convert --version
=Version: ImageMagick 6.9.7-3 Q16 x86_64
Any help appreciated