Hi,
I would like to use ImageMagick to convert an .SVG file containing JavaScript code to .PNG file. Is it possible? (why not?)
An example would be to get a rule_110.png (http://en.wikipedia.org/wiki/Rule_110 ) from
http://users.skynet.be/chricat/automate.svg
I can display it with Firefox and take a screenshot but I am then limited by my screen width.
(Another example would be to draw a scale on a picture like in
http://commons.wikimedia.org/wiki/File: ... ue_DVD.jpg )
Thank you,
xof
Converting SVG+Javascript files to PNG
Re: Converting SVG+Javascript files to PNG
There is no way to know if Javascript code, if any, will ever finish running.
Re: Converting SVG+Javascript files to PNG
You are right (nobody knows if a Javascript program will ever end), but it is the same with Postcript files.
And I can 'convert' postscript files.
xof
And I can 'convert' postscript files.
xof
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Converting SVG+Javascript files to PNG
Note also that there is two methods of processing SVG. The internal MSVG which will definatally not handle Java script, and a external delegate library RSVG. I don't know if RSVG handles java script.
see http://www.imagemagick.org/Usage/draw/#svg
see http://www.imagemagick.org/Usage/draw/#svg
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Converting SVG+Javascript files to PNG
Thank you. (but neither msvg: nor rsvg: seem to handle JavaScript)
I'll probably have to use Postscript.
xof
I'll probably have to use Postscript.
xof