Page 1 of 1
converting svg to png error
Posted: 2012-11-02T17:16:49-07:00
by djmon84
Hi all! (sorry for my english)
I'm having problems converting svg to png, What happens?
Source svg image:
The code:
Result:
i'm using the last version for windows: ImageMagick-6.8.0-4-Q16-windows-dl.
I tried with differents svg files, and always the same (wrong) result.What im doing wrong?
Thanks!
Re: converting svg to png error
Posted: 2012-11-02T17:18:53-07:00
by djmon84
i tried too with php + imagick with identical result....
Re: converting svg to png error
Posted: 2012-11-02T18:04:54-07:00
by fmw42
Each SVG renderer can be different. They may all not recognized the full set of commands.
In IM you can use the internal svg renderer, but if you want something more precise/functional, install the RSVG delegate and see if that helps.
You can see if it is configured by
convert -list configure
and see if rsvg is listed on the line DELEGATES.
Or
convert -list format
and look at the line regarding SVG and see if it shows the RSVG rather than xml
Sorry I am not a windows user so cannot help install it. Search the internet for SVG delegate librariy and find one for Windows.
Re: converting svg to png error
Posted: 2012-11-04T10:18:39-07:00
by djmon84
thank you very much for your help!
I have found this delegate library for svg in windows:
http://opensourcepack.blogspot.com.es/2 ... -tool.html
But i don't know how to install/use it...
I have added this node in the delegates.xml using the commands of the delegate library:
Code: Select all
<delegate decode="svg" encode="png" command="rsvg-convert %i --dpi-x=%x --dpi-y=%i -w=%w -h=%h --output %o"/>
And i dont have no idea of how to continue...
Any help would be helpful!