rsvg-convert.1 2.59 KB
Newer Older
1
.\" -*- fill-column:100 -*-
2
.TH rsvg-convert 1
3
.SH NAME
4
rsvg-convert \- turn SVG files into raster images.
5
.SH SYNOPSIS
6 7
.B rsvg-convert
[options] in.svg > out.png
8 9
.I ""
.SH DESCRIPTION
10 11
Converts SVG images into PNG raster images, PDF, PS, or SVG vector images, or dumps of Cairo XML or
recording surfaces.
12 13
.SS OPTIONS
.TP
14
.I "\-d \-\-dpi-x number"
15
Set the X resolution of the image in pixels per inch.  RSVG's current default is 90 DPI.
16 17
.TP
.I "\-p \-\-dpi-y number"
18
Set the Y resolution of the image in pixels per inch.  RSVG's current default is 90 DPI.
19 20
.TP
.I "\-x \-\-x\-zoom number"
21
X Zoom factor, as a percentage.  If unspecified, 1.0 is used as the default.
22 23
.TP
.I "\-y \-\-y\-zoom number"
24
Y Zoom factor, as a percentage.  If unspecified, 1.0 is used as the default.
25
.TP
26 27
.I "\-z \-\-zoom number"
Zoom factor, as a percentage.  If unspecified, 1.0 is used as the default.
28
.TP
29
.I "\-w \-\-width integer"
30 31
Specify how wide you wish the image to be.  If unspecified, the natural width of the image is used
as the default.
32 33
.TP
.I "\-h \-\-height integer"
34 35
Specify how tall you wish the image to be.  If unspecified, the natural height of the image is used
as the default.
36
.TP
37
.I "\-f \-\-format [png, pdf, ps, svg, xml, recording]"
38 39
Specify the output format you wish the image to be saved in.  If unspecified, PNG is used as the
default.
40
.TP
41
.I "\-o \-\-output filename"
42
Specify the output filename.  If unspecified, outputs to stdout.
43 44
.TP
.I "\-a \-\-keep-aspect-ratio"
45 46
Specify that the aspect ratio is to be preserved.  If unspecified, aspect ratio will not be
preserved.
47 48
.TP
.I "\-b \-\-background-color [black, white, #abccee, #aaa...]"
49
Specify the background color.  If unspecified, none is used as the default.
50 51
.TP
.I "\-\-base-uri uri"
52
Specify the base URI for SVG files.  If unspecified, none is used as the default.
53
.TP
54
.I "\-v \-\-version"
55
Display what version of rsvg this is.
56 57 58 59 60 61 62 63
.SH ENVIRONMENT VARIABLES
.TP
.I "SOURCE_DATE_EPOCH"
If the selected output format is PDF, this variable can be used to control the CreationDate in the
PDF file.  This is useful for reproducible output.  The environment variable must be set to a
decimal number corresponding to a UNIX timestamp, defined as the number of seconds, excluding leap
seconds, since 01 Jan 1970 00:00:00 UTC.  The specification for this can be found at
https://reproducible-builds.org/specs/source-date-epoch/
64
.SH MORE INFORMATION
65
https://wiki.gnome.org/Projects/LibRsvg
66

67
http://www.w3.org/TR/SVG11/
68

69
http://www.gnome.org/
70
.SH "AUTHORS"
71 72
Dom Lachowicz (cinamod@hotmail.com), Caleb Moore (c.moore@student.unsw.edu.au), Federico
Mena-Quintero (federico@gnome.org), and a host of others.