1rsvg-convert(1)             General Commands Manual            rsvg-convert(1)
2
3
4

NAME

6       rsvg-convert - turn SVG files into raster images.
7

SYNOPSIS

9       rsvg-convert [options] in.svg > out.png
10

DESCRIPTION

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 90 DPI.
19
20       -p --dpi-y number
21              Set  the  Y  resolution of the image in pixels per inch.  RSVG's
22              current default is 90 DPI.
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
34              the 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
61              used as the default.
62
63       -v --version
64              Display what version of rsvg this is.
65

ENVIRONMENT VARIABLES

67       SOURCE_DATE_EPOCH
68              If  the selected output format is PDF, this variable can be used
69              to control the CreationDate in the PDF file.  This is useful for
70              reproducible  output.  The environment variable must be set to a
71              decimal number corresponding to a UNIX timestamp, defined as the
72              number  of  seconds,  excluding  leap seconds, since 01 Jan 1970
73              00:00:00 UTC.  The  specification  for  this  can  be  found  at
74              https://reproducible-builds.org/specs/source-date-epoch/
75

MORE INFORMATION

77       https://wiki.gnome.org/Projects/LibRsvg
78
79       http://www.w3.org/TR/SVG11/
80
81       http://www.gnome.org/
82

AUTHORS

84       Dom   Lachowicz   (cinamod@hotmail.com),   Caleb   Moore  (c.moore@stu‐
85       dent.unsw.edu.au), Federico Mena-Quintero (federico@gnome.org),  and  a
86       host of others.
87
88
89
90                                                               rsvg-convert(1)
Impressum