1rsvg-convert(1) General Commands Manual rsvg-convert(1)
2
3
4
6 rsvg-convert - turn SVG files into raster images.
7
9 rsvg-convert [options] in.svg > out.png
10
12 Converts SVG images into PNG raster images, PDF, PS, or SVG vector
13 images, or dumps of Cairo XML or recording surfaces.
14
15 OPTIONS
16 -d --dpi-x number
17 Set the X resolution of the image in pixels per inch. RSVG's
18 current default is 90dpi
19
20 -p --dpi-y number
21 Set the Y resolution of the image in pixels per inch. RSVG's
22 current default is 90dpi
23
24 -x --x-zoom number
25 X Zoom factor, as a percentage. If unspecified, 1.0 is used as
26 the default.
27
28 -y --y-zoom number
29 Y Zoom factor, as a percentage. If unspecified, 1.0 is used as
30 the default.
31
32 -z ---zoom number
33 Zoom factor, as a percentage. If unspecified, 1.0 is used as the
34 default.
35
36 -w --width integer
37 Specify how wide you wish the image to be. If unspecified, the
38 natural width of the image is used as the default.
39
40 -h --height integer
41 Specify how tall you wish the image to be. If unspecified, the
42 natural height of the image is used as the default.
43
44 -f --format [png, pdf, ps, svg, xml, recording]
45 Specify the output format you wish the image to be saved in. If
46 unspecified, PNG is used as the default.
47
48 -o --output filename
49 Specify the output filename. If unspecified, outputs to stdout.
50
51 -a --keep-aspect-ratio
52 Specify that the aspect ratio is to be preserved. If unspeci‐
53 fied, aspect ratio will not be preserved.
54
55 -b --background-color [black, white, #abccee, #aaa...]
56 Specify the background color. If unspecified, none is used as
57 the default.
58
59 --base-uri uri
60 Specify the base URI for SVG files. If unspecified, none is used
61 as the default.
62
63 -v --version
64 Display what version of rsvg this is.
65
67 http://librsvg.sourceforge.net/ http://www.w3.org/TR/SVG11/
68 http://www.gnome.org/
69
71 Dom Lachowicz (cinamod@hotmail.com), Caleb Moore (c.moore@stu‐
72 dent.unsw.edu.au), and a host of others.
73
74
75
76 rsvg-convert(1)