From: Pascal Quesseveur <pquessev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Background color in SVG display
Date: Thu, 23 Jun 2022 20:14:10 +0200 [thread overview]
Message-ID: <82r13fl025.fsf@gmail.com> (raw)
In-Reply-To: 83czeze54r.fsf@gnu.org
>"EZ" == Eli Zaretskii <eliz@gnu.org> writes:
EZ> 2.2? Are you sure? That sounds very old. The latest stable
EZ> version is 2.56, AFAIK.
No I am not sure. As librsvg is named librsvg-2-2.dll I supposed
it should be 2.2. But I looked in emacs 27.1 directory and librsvg is also
librsvg-2.2.dll but the size is different. As version 27.1 was correct
I copied librsvg from 27.1 to 28.1: display is always wrong in 28.1 so
I suppose libsrvg is not the culprit.
EZ> I cannot reproduce the problems you describe, but I'm not the
EZ> expert on displaying SVG images. If you report a bug, it will
EZ> be looked at by people who are experts. There's no need to
EZ> worry about reporting a bug which eventually turns out not to be
EZ> a bug.
I know that but I'd rather be sure I understood the problem.
EZ> AFAIU, in Emacs 28 and later you should be able to give a face
EZ> text property to the part of the buffer that displays SVG
EZ> image(s), and the background color of that face will be honored
EZ> by the SVG display, provided that (a) your librsvg is recent
EZ> enough, and (b) the SVG image itself doesn't specify a
EZ> background color.
splash.svg has no background. I have decided to advise create-image
to set explictely image background color attribute:
(setq image (nconc image (list :background color)))
When color is a variant of grey, display seems ok. When it is
#ff0000 background of displayed image is blue. And when #0000ff image
background is red. When I set color attribute to #904020 I get a
displayed color more or less similar to royalblue4 (#1a2f79).
--
Pascal Quesseveur
pquessev@gmail.com
next prev parent reply other threads:[~2022-06-23 18:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 6:42 Background color in SVG display Pascal Quesseveur
2022-06-23 7:01 ` Eli Zaretskii
2022-06-23 10:35 ` Pascal Quesseveur
2022-06-23 10:45 ` Eli Zaretskii
2022-06-23 10:50 ` Pascal Quesseveur
2022-06-23 12:17 ` Pascal Quesseveur
2022-06-23 13:04 ` Eli Zaretskii
2022-06-23 15:43 ` Pascal Quesseveur
2022-06-23 16:06 ` Eli Zaretskii
2022-06-23 18:14 ` Pascal Quesseveur [this message]
2022-06-23 18:40 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=82r13fl025.fsf@gmail.com \
--to=pquessev@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).