[librsvg: 5/35] rsvg-convert.1: Example on background color
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/35] rsvg-convert.1: Example on background color
- Date: Thu, 17 Jun 2021 19:31:37 +0000 (UTC)
commit 4fc26f8f207c4e9bca46fca4163c4c8fe8d0093d
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jun 11 12:20:07 2021 -0500
rsvg-convert.1: Example on background color
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/547>
rsvg-convert.1 | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
---
diff --git a/rsvg-convert.1 b/rsvg-convert.1
index df838a3c..00b33ce3 100644
--- a/rsvg-convert.1
+++ b/rsvg-convert.1
@@ -170,6 +170,41 @@ or
.B viewBox
attributes.
+.SS BACKGROUND COLOR
+You can use the
+.B --background-color
+option (
+.B -b
+for short) to specify the backgroung color that will appear in parts of the image that would otherwise
+be transparent. This option accepts the same syntax as the CSS
+.B color
+property, so you can use
+.B #rrggbb
+syntax or CSS named colors like
+.BR white .
+
+.P
+.RS
+.B rsvg-convert
+.BI --background-color= white
+.I input.svg
+.B >
+.I output.png
+#### opaque white
+.RE
+.P
+.RS
+.P
+.B rsvg-convert
+.B -b
+.I '#ff000080'
+.I input.svg
+.B >
+.I output.png
+#### translucent red - use shell quotes so the # is not interpreted as a comment
+.RE
+
+
.SH OPTIONS
.TP
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]