Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there some Java library for converting .svg to .png or .jpg at code? [closed]

Tags:

java

svg

Is there some Java library for converting .svg to .png or .jpg at code ? Does anybody have experience with this ?

like image 321
Damir Avatar asked Jul 07 '11 12:07

Damir


2 Answers

Check out Batik, which has an Apache license.

like image 191
Chris Gregg Avatar answered Sep 27 '22 18:09

Chris Gregg


Specifically, you should take a look at the Batik Rasterizer.

Here are the associated JavaDocs for manipulating it at the code level:

  • http://xmlgraphics.apache.org/batik/javadoc/
  • http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/apps/rasterizer/package-frame.html
like image 22
jbeard4 Avatar answered Sep 27 '22 16:09

jbeard4