[xep-support] Re: Output to image

Jan Tošovský j.tosovsky at gmc.net
Wed Nov 6 23:47:33 PST 2013


My original message has been trimmed so I am sending it again in plain text:

Alternatively you can use: 
1. Batik rasterizer - http://xmlgraphics.apache.org/batik/tools/rasterizer.html 
java -jar batik-rasterizer.jar -d output -m image/png *.svg 
(converts all svg images in the folder into the output folder) 

2. PhantomJS - http://phantomjs.org/ - it contains rasterize.js script for this 
phantomjs.exe rasterize.js my.svg my.png 

PhantomJS uses the WebKit engine under the hood so it can support all SVG features you can display in the browser. I've recently switched to it as Batik could not process advanced mask and filters in my files. 

Jan

!DSPAM:87,527b45999859510912731!




More information about the Xep-support mailing list