Scroll to navigation

USVG(1) User Commands USVG(1)

NAME

usvg - usvg (micro SVG) is an SVG simplification tool.

DESCRIPTION

usvg (micro SVG) is an SVG simplification tool.

USAGE:

# from file to file
# from file to stdout
# from stdin to file
# from stdin to stdout

OPTIONS:

Prints help information
Prints version information
Prints the output SVG to the stdout
Sets the resolution [default: 96] [possible values: 10..4000 (inclusive)]
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 or none when reading from stdin]
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. Will be used when no 'font-family' is present [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
Sets the default width of the SVG viewport. Like the '--default-height' option, this option controls what size relative units in the document will use as a base if there is no viewBox and document width or height are relative. [values: 1..4294967295 (inclusive)] [default: 100]
Sets the default height of the SVG viewport. Refer to the explanation of the '--default-width' option. [values: 1..4294967295 (inclusive)] [default: 100]
Do not convert text into paths.
Adds a prefix to each ID attribute
Sets the XML nodes indent [values: none, 0, 1, 2, 3, 4, tabs] [default: 4]
Sets the XML attributes indent [values: none, 0, 1, 2, 3, 4, tabs] [default: none]
Set the coordinates numeric precision. Smaller precision can lead to a malformed output in some cases [values: 2..8 (inclusive)] [default: 8]
Set the transform values numeric precision. Smaller precision can lead to a malformed output in some cases [values: 2..8 (inclusive)] [default: 8]
Disables warnings

ARGS:

<in-svg>
Input file
<out-svg>
Output file
February 2025 usvg 0.44.0