jfree / jfreesvg

A fast, lightweight Java library for creating Scalable Vector Graphics (SVG) output.
http://www.jfree.org/jfreesvg
GNU General Public License v3.0
319 stars 58 forks source link

Is it possible to output a .svg file in compressed format #33

Closed changbaishan closed 3 years ago

changbaishan commented 3 years ago

My .svg file is really big. is there a way to produce it in compressed form?

Thanks very much.

jfree commented 3 years ago

There is this method in SVGUtils that can gzip the output when writing to a file:

public static void writeToSVG(File file, String svgElement, boolean zip)