GNU bug report logs - #77841
Some svg image's black color is replaced by emacs's theme foreground color

Previous Next

Package: emacs;

Reported by: Billy Lei <LeiYiXia29 <at> outlook.com>

Date: Wed, 16 Apr 2025 12:16:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Alan Third <alan <at> idiocy.org>
Cc: Ihor Radchenko <yantar92 <at> posteo.net>, 77841 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, Billy Lei <LeiYiXia29 <at> outlook.com>
Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color
Date: Fri, 23 May 2025 12:18:26 +0200
[Message part 1 (text/plain, inline)]
Alan Third <alan <at> idiocy.org> writes:

> On Mon, May 05, 2025 at 04:43:53PM +0200, Manuel Giraud wrote:
>> Alan Third <alan <at> idiocy.org> writes:
>> 
>> > The attached might work, but only if you're using librsvg 2.48 or
>> > above... I can think of a way to fix *that* problem, but it'll need a
>> > little more thought.
>> 
>> I'm using librsvg 2.60 but the attached does not fix the issue: the
>> foreground is still black no matter what.  I have taken care of cleaning
>> the DocView cache directory before testing.
>
> Hi Manuel,
>
> Can you try loading an SVG like this:
>
>     (insert-image (create-image "~/Downloads/Flag_of_East_Germany.svg"
>      'svg nil :width 100 :css "svg{fill: green;}"))
>
> The file I'm using is
> https://upload.wikimedia.org/wikipedia/commons/a/a1/Flag_of_East_Germany.svg
> and the top third of the flag shows as green. Do you still see it as
> black?

Hi Alan,

Here is what I get:
[2025-05-23T12:15+0200.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
-- 
Manuel Giraud

This bug report was last modified 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.