Scroll to navigation

RESVG(1) User Commands RESVG(1)

NAME

resvg - resvg is an SVG rendering application.

DESCRIPTION

resvg is an SVG rendering application.

USAGE:

# from file to file
# from file to stdout
# from stdin to file
# from stdin to stdout
resvg in.svg out.png resvg -z 4 in.svg out.png resvg --query-all in.svg

OPTIONS:

Prints this help
Prints version
Prints the output PNG to the stdout
Sets the width in pixels
Sets the height in pixels
Zooms the image by a factor
Sets the resolution [default: 96] [possible values: 10..4000 (inclusive)]
Sets the background color Examples: red, #fff, #fff000
Inject a stylesheet that should be used when resolving CSS attributes.
Sets a comma-separated list of languages that will be used during the 'systemLanguage' attribute resolving Examples: 'en-US', 'en-US, ru-RU', 'en, ru' [default: en]
Selects the default shape rendering method [default: geometricPrecision] [possible values: optimizeSpeed, crispEdges, geometricPrecision]
Selects the default text rendering method [default: optimizeLegibility] [possible values: optimizeSpeed, optimizeLegibility, geometricPrecision]
Selects the default image rendering method [default: optimizeQuality] [possible values: optimizeQuality, optimizeSpeed]
Sets a directory that will be used during relative paths resolving. Expected to be the same as the directory that contains the SVG file, but can be set to any. [default: input file directory]
Sets the default font family that will be used when no 'font-family' is present [default: Times New Roman]
Sets the default font size that will be used when no 'font-size' is present [default: 12] [possible values: 1..192 (inclusive)]
Sets the 'serif' font family [default: Times New Roman]
Sets the 'sans-serif' font family [default: Arial]
Sets the 'cursive' font family [default: Comic Sans MS]
Sets the 'fantasy' font family [default: Impact]
Sets the 'monospace' font family [default: Courier New]
Load a specified font file into the fonts database. Will be used during text to path conversion. This option can be set multiple times
Loads all fonts from the specified directory into the fonts database. Will be used during text to path conversion. This option can be set multiple times
Disables system fonts loading. You should add some fonts manually using --use-font-file and/or --use-fonts-dir Otherwise, text elements will not be processes
Lists successfully loaded font faces. Useful for debugging
Queries all valid SVG ids with bounding boxes
Renders an object only with a specified ID
Use an image size instead of an object size during ID exporting
Use drawing's tight bounding box instead of image size. Used during normal rendering and not during --export-id
Prints performance stats
Disables warnings

ARGS:

<in-svg>
Input file
<out-png>
Output file
January 2025 resvg 0.44.0