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: Alan Third <alan <at> idiocy.org>
To: Manuel Giraud <manuel <at> ledu-giraud.fr>
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: Thu, 22 May 2025 21:41:40 +0100
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?

-- 
Alan Third




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.