Page 1 of 1

convert svg to png

Posted: 2014-07-09T06:18:37-07:00
by vladimircape
Hi, i install to my server ImageMagick 6.8.9-5 Q16 2014-07-09
try to convert svg to png and get errors
convert: unable to open image `/tmp/magick-27998tM19O5QnDkAn': No such file or directory @ error/blob.c/OpenBlob/2658.
convert: unable to open file `/tmp/magick-27998tM19O5QnDkAn': No such file or directory @ error/constitute.c/ReadImage/540.
convert: no images defined `4.png' @ error/convert.c/ConvertImageCommand/3187.
I use CentOS 6.4
Also i check lib for SVG

Code: Select all

 convert -list format | grep SVG 
and get

Code: Select all

 MSVG  -w+   ImageMagick's own SVG internal renderer
      SVG  -w+   Scalable Vector Graphics
     SVGZ  -w+   Compressed Scalable Vector Graphics
sample of file
https://yadi.sk/d/bbSYUTpAWGrZy

Re: convert svg to png

Posted: 2014-07-09T06:47:11-07:00
by vladimircape
tried other file get other error
[root@li323-56 root]# convert example.svg 4.png

(rsvg-convert:28717): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Operation not supported
Error reading SVG:Failed to open file '/tmp/magick-28716LvtlyGhvWN7d': No such file or directory

convert: unable to open image `example.svg': No such file or directory @ error/blob.c/OpenBlob/2658.
convert: delegate failed `"rsvg-convert" -o "%o" "%i"' @ error/delegate.c/InvokeDelegate/1153.
convert: unable to open image `/tmp/magick-28716Dej5TkNolKQl': No such file or directory @ error/blob.c/OpenBlob/2658.
convert: unable to open file `/tmp/magick-28716Dej5TkNolKQl': No such file or directory @ error/constitute.c/ReadImage/540.
convert: no images defined `4.png' @ error/convert.c/ConvertImageCommand/3187.

Re: convert svg to png

Posted: 2014-07-09T07:00:22-07:00
by snibgo
It sounds like a major problem with the build. Do any conversions work? Eg:

Code: Select all

convert logo: x.png
convert logo: x.jpg
etc.

Perhaps you didn't install delegates before building IM.

Re: convert svg to png

Posted: 2014-07-09T07:59:14-07:00
by vladimircape
snibgo wrote:It sounds like a major problem with the build. Do any conversions work? Eg:

Code: Select all

convert logo: x.png
convert logo: x.jpg
etc.

Perhaps you didn't install delegates before building IM.
i tried
convert obratnai.jpg 5.png
and everything is correct

Re: convert svg to png

Posted: 2014-07-09T08:33:26-07:00
by snibgo
Your mono-ex-fix-clamp.svg converts for me without complaint. I suspect your IM isn't built or installed correctly.

You might try with Inkscape in your path, so IM will use that instead of its internal renderer.

You might try rebuilding IM, from scratch, starting with SVG components.

Beyond that, I have no suggestions. Sorry.