RESVG(1)
π NAME π
resvg β bestie, it's an SVG rendering application. That's it, that's the whole thing. π
β¨ DESCRIPTION β¨
resvg is an SVG rendering application. Yes, literally the same sentence as the NAME section, but like, it bears repeating because it's the entire plot. π¦
π USAGE π
Okay so here's all the ways you can run it, icon by icon:
resvg [OPTIONS] <in-svg> <out-png>
# from file to file
resvg [OPTIONS] <in-svg> -c
# from file to stdout
resvg [OPTIONS] - <out-png>
# from stdin to file
resvg [OPTIONS] - -c
# from stdin to stdout
And here's a lil lineup of examples so you can see the whole thing in action:
resvg in.svg out.png resvg -z 4 in.svg out.png resvg --query-all in.svg
π OPTIONS π
Sit down, hydrate, this list is long and every single one of them matters, no skips. π
--helpβ Prints this help. The classic.-V,--versionβ Prints version. Gotta know what you're working with.-cβ Prints the output PNG to the stdout. Straight to your terminal, no file left behind.-w,--width LENGTHβ Sets the width in pixels.-h,--height LENGTHβ Sets the height in pixels.-z,--zoom FACTORβ Zooms the image by a factor. Bring it closer, bestie. π₯--dpi DPIβ Sets the resolution. [default:96] [possible values:10..4000(inclusive)]--background COLORβ Sets the background color. Examples:red,#fff,#fff000β¨--stylesheet PATHβ Inject a stylesheet that should be used when resolving CSS attributes.--languages LANGβ 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]--shape-rendering HINTβ Selects the default shape rendering method. [default:geometricPrecision] [possible values:optimizeSpeed,crispEdges,geometricPrecision]--text-rendering HINTβ Selects the default text rendering method. [default:optimizeLegibility] [possible values:optimizeSpeed,optimizeLegibility,geometricPrecision]--image-rendering HINTβ Selects the default image rendering method. [default:optimizeQuality] [possible values:optimizeQuality,optimizeSpeed,smooth,high-quality,crisp-edges,pixelated]--resources-dir DIRβ 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]--font-family FAMILYβ Sets the default font family that will be used when no'font-family'is present. [default:Times New Roman]--font-size SIZEβ Sets the default font size that will be used when no'font-size'is present. [default:12] [possible values:1..192(inclusive)]--serif-family FAMILYβ Sets the'serif'font family. [default:Times New Roman]--sans-serif-family FAMILYβ Sets the'sans-serif'font family. [default:Arial]--cursive-family FAMILYβ Sets the'cursive'font family. [default:Comic Sans MS]--fantasy-family FAMILYβ Sets the'fantasy'font family. [default:Impact]--monospace-family FAMILYβ Sets the'monospace'font family. [default:Courier New]--use-font-file PATHβ Load a specified font file into the fonts database. Will be used during text to path conversion. This option can be set multiple times. π«Ά--use-fonts-dir PATHβ 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.--skip-system-fontsβ Disables system fonts loading. You should add some fonts manually using--use-font-fileand/or--use-fonts-dirOtherwise, text elements will not be processes.--list-fontsβ Lists successfully loaded font faces. Useful for debugging. π--query-allβ Queries all valid SVG ids with bounding boxes.--export-id IDβ Renders an object only with a specified ID.--export-area-pageβ Use an image size instead of an object size during ID exporting.--export-area-drawingβ Use drawing's tight bounding box instead of image size. Used during normal rendering and not during--export-id.--perfβ Prints performance stats. Numbers go brrr. π--quietβ Disables warnings. Shhh. π
Heads up bestie: if you're using--skip-system-fonts, you gotta hook up fonts yourself with--use-font-fileand/or--use-fonts-dir, otherwise your text elements will just not get processed. Not a vibe. π
πΈ ARGS πΈ
<in-svg>β Input file. Where the art lives.<out-png>β Output file. Where the art goes. π
Okay that's the whole legend. This was pulled straight from resvg version 0.47.0+ds, dated August 2026 β so if you're reading this and the future has moved on, that's on the future, not on me. Go render something iconic. Periodt. πβ¨
π¦ where this page comes from
- ubuntu stonking: resvg 0.47.0+ds-4 Β· Apache-2.0 OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms