Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, February 10, 2021
 
 

rsvg-convert (1)

Name

rsvg-convert - turn SVG files into raster images.

Synopsis

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

Description

rsvg-convert(1)             General Commands Manual            rsvg-convert(1)



NAME
       rsvg-convert - turn SVG files into raster images.

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

DESCRIPTION
       Converts  SVG  images  into  PNG  raster images, PDF, PS, or SVG vector
       images, or dumps of Cairo XML or recording surfaces.

   OPTIONS
       -d --dpi-x number
              Set the X resolution of the image in  pixels  per  inch.  RSVG's
              current default is 90dpi

       -p --dpi-y number
              Set  the  Y  resolution  of the image in pixels per inch. RSVG's
              current default is 90dpi

       -x --x-zoom number
              X Zoom factor, as a percentage. If unspecified, 1.0 is  used  as
              the default.

       -y --y-zoom number
              Y  Zoom  factor, as a percentage. If unspecified, 1.0 is used as
              the default.

       -z ---zoom number
              Zoom factor, as a percentage. If unspecified, 1.0 is used as the
              default.

       -w --width integer
              Specify  how  wide you wish the image to be. If unspecified, the
              natural width of the image is used as the default.

       -h --height integer
              Specify how tall you wish the image to be. If  unspecified,  the
              natural height of the image is used as the default.

       -f --format [png, pdf, ps, svg, xml, recording]
              Specify  the output format you wish the image to be saved in. If
              unspecified, PNG is used as the default.

       -o --output filename
              Specify the output filename. If unspecified, outputs to stdout.

       -a --keep-aspect-ratio
              Specify that the aspect ratio is to be  preserved.  If  unspeci-
              fied, aspect ratio will not be preserved.

       -b --background-color [black, white, #abccee, #aaa...]
              Specify  the  background  color. If unspecified, none is used as
              the default.

       --base-uri uri
              Specify the base URI for SVG files. If unspecified, none is used
              as the default.

       -v --version
              Display what version of rsvg this is.

MORE INFORMATION
       http://librsvg.sourceforge.net/             http://www.w3.org/TR/SVG11/
       http://www.gnome.org/

AUTHORS
       Dom  Lachowicz   (cinamod@hotmail.com),   Caleb   Moore   (c.moore@stu-
       dent.unsw.edu.au), and a host of others.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
       +---------------+-----------------------+
       |Availability   | image/library/librsvg |
       +---------------+-----------------------+
       |Stability      | Pass-through volatile |
       +---------------+-----------------------+
NOTES
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source         was         downloaded        from         https://down-
       load.gnome.org/sources/librsvg/2.40/librsvg-2.40.16.tar.xz

       Further information about this software can be found on the open source
       community website at https://wiki.gnome.org/Projects/LibRsvg.



                                                               rsvg-convert(1)