rsvg(1) User Commands rsvg(1)NAME
rsvg - convert SVG files into raster images
SYNOPSIS
rsvg [--dpi number] [--format png|jpeg] [--height integer] [--version] [--width integer] [--x-zoom number] [--y-zoom number] infile.svg
outfile.png|outfile.jpeg
DESCRIPTION
rsvg converts SVG images into PNG and JPEG raster images.
OPTIONS
The following options are supported:
--dpi number Set the resolution of the image in pixels per inch. The default value is 90dpi. You can also use -d to specify this option.
--format png | jSpecify the output format for the converted image. The default value is png. You can also use -f to specify this option.
--height integerSpecify the height of the converted image. The default value is the height of the original image. You can also use -h to
specify this option.
--version Display rsvg version information. You can also use -v to specify this option.
--width integer Specify the width of the converted image. The default value is the width of the original image. You can also use -w to
specify this option.
--x-zoom number X Zoom factor, as a percentage. The default value is 1.0. You can also use -x to specify this option.
--y-zoom number Y Zoom factor, as a percentage. The default value is 1.0. You can also use -y to specify this option.
OPERANDS
The following operands are supported:
infile.svg The name of the input SVG file.
outfile.png The name of the converted PNG file.
outfile.jpeg The name of the converted JPEG file.
EXAMPLES
Example 1: Converting an SVG Image to PNG
example% rsvg myfile.svg myfile.png
Example 2: Converting an SVG Image to JPEG at 300dpi Resolution
example% rsvg -f jpeg -d 300 myfile.svg myfile.jpg
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/rsvg Executable to convert SVG files into raster images
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-base-libs |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
http://librsvg.sourceforge.net/
http://www.w3.org/TR/SVG11/
NOTES
Original man page written by Dom Lachowicz (cinamod@hotmail.com), Alex Larsson (alex@redhat.com), and others.
Updated by Laszlo Peter, Sun Microsystems Inc., 2004.
SunOS 5.10 7 Sep 2004 rsvg(1)
Check Out this Related Man Page
img-png(n) img-png(n)
__________________________________________________________________________________________________________________________________________________NAME
img-png - Img, Portable Network Graphics format (png)
SYNOPSIS
package require Tk
package require img::png ?1.4?
image create photo ?name? ?options?
_________________________________________________________________DESCRIPTION
The package img::png is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::png.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing
raster images in the Portable Network Graphics format (png). More specifically img::png extends Tk's photo image type.
The name of the new format handler is png. This handler provides new additional configuration options. See section PNG OPTIONS for more
detailed explanations.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in png format (options -data and -file) is detected automatically.
[2] The format name png is recognized by the option -format. In addition the value for the option is treated as list and may contain
any of the special options listed in section PNG OPTIONS.
PNG OPTIONS
The handler provides no true options at all, but accepts pairs of keys and values when writing a PNG file. Each pair will be written as a
named text chunk where the key provides the name of the chunk and the value its contents. For example
png Author <name> Title <title> Description ...
TRANSPARENCY
If you want to write images to disk which contain transparency information (e.g. PNG with alpha channel) you need at least Tk 8.3.
SEE ALSO
img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-
tga, img-tiff, img-window, img-xbm, img-xpm
KEYWORDS
image handling, png, tk
COPYRIGHT
Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
Img 1.4 img-png(n)