SVG rasterizer with Batik30 Mar 2004
At work I sit at a fairly slow machine so it takes forever to transform svg files to high resolution bitmap pictures. Also Java has a default upper memory limit which is quickly excited when exporting to high resolution bitmap pictures. This problem is solved when the default upper limit is increased: -Xmx128m (use 128MB RAM)
I ssh’ed home to my desktop machine and tried to use Batik there. But I got the exception:
Error: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
This happens when no X server is running but I googled around for while and found a solution to the problem:
So I ended up with something like this:
user@debian:~$ java -Xmx128m -Djava.awt.headless=true -jar batik-rasterizer.jar -dpi 300 -d out.png in.svg
SVG rasterizer with Batik by Jacob Emcken is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.