Commit 5146c4dc authored by Dom Lachowicz's avatar Dom Lachowicz

update manual page to be more complete and accurate, support jpg in addition...

update manual page to be more complete and accurate, support jpg in addition to jpeg as a JPEG file marker
parent 9b981402
2003-01-16 Dom Lachowicz <cinamod@hotmail.com>
* rsvg.1: Improve manual page
* test-rsvg.c: Support .jpg as well as .jpeg as JPEG format specifier
2003-01-14 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-XXX.c (*): Rework css_parse_normalized_length to "properly"
......
......@@ -3,32 +3,32 @@
rsvg \- Turn SVG files into raster images
.SH SYNOPSIS
.B rsvg
[option] file.svg file.png
[option] in.svg out.png
.I ""
.SH DESCRIPTION
rsvg coverts SVG images into PNG and JPEG raster images
RSVG coverts SVG images into PNG and JPEG raster images.
.SS OPTIONS
.TP
.I "\-d \-\-dpi number"
Set the resolution of the image in pixels per inch
Set the resolution of the image in pixels per inch. RSVG's current default is 90dpi
.TP
.I "\-x \-\-x\-zoom number"
X Zoom factor, as a percentage
X Zoom factor, as a percentage. If unspecified, 1.0 is used as the default.
.TP
.I "\-y \-\-y\-zoom number"
Y Zoom factor, as a percentage
Y Zoom factor, as a percentage. If unspecified, 1.0 is used as the default.
.TP
.I "\-w \-\-width integer"
Specify how wide you wish the image to be
Specify how wide you wish the image to be. If unspecified, the natural width of the image is used as the default.
.TP
.I "\-h \-\-height integer"
Specify how tall you wish the image to be
Specify how tall you wish the image to be. If unspecified, the natural height of the image is used as the default.
.TP
.I "\-f \-\-format [png, jpeg]"
Specify the output format you wish the image to be saved in
Specify the output format you wish the image to be saved in. If unspecified, PNG is used as the default.
.TP
.I "\-v \-\-version"
Display what version of rsvg this is
Display what version of rsvg this is.
.SH MORE INFORMATION
http://www.gnome.org/
http://librsvg.sourceforge.net/
......
......@@ -67,7 +67,7 @@ main (int argc, const char **argv)
if (bVersion != 0)
{
printf ("rsvg version %s\n", VERSION);
g_print ("rsvg version %s\n", VERSION);
return 0;
}
......@@ -84,7 +84,7 @@ main (int argc, const char **argv)
return 1;
}
if (strstr (format, "jpeg") != NULL)
if (strstr (format, "jpeg") != NULL || strstr (format, "jpg") != NULL)
format = "jpeg";
else
format = "png";
......@@ -109,7 +109,7 @@ main (int argc, const char **argv)
gdk_pixbuf_save (pixbuf, args[1], format, NULL, NULL);
else {
poptFreeContext (popt_context);
fprintf (stderr, "Error loading SVG file.\n");
g_warning ("Error loading SVG file.\n");
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment