From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#56182: 28.1; Display of SVG file with transparent background is incorrect Date: Sat, 25 Jun 2022 17:32:34 +0100 Message-ID: References: <82k096lgj5.fsf@gmail.com> <87a6a2s9e2.fsf@gnus.org> <83czexaycd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38534"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pquessev@gmail.com, Lars Ingebrigtsen , 56182@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 25 18:34:59 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o58kL-0009nL-GZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 18:34:58 +0200 Original-Received: from localhost ([::1]:48628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o58kJ-0006er-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 12:34:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o58iU-0004Is-CW for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 12:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o58iU-0002NZ-4C for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o58iU-0005Zc-2N for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 12:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jun 2022 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56182 X-GNU-PR-Package: emacs Original-Received: via spool by 56182-submit@debbugs.gnu.org id=B56182.165617476721394 (code B ref 56182); Sat, 25 Jun 2022 16:33:02 +0000 Original-Received: (at 56182) by debbugs.gnu.org; 25 Jun 2022 16:32:47 +0000 Original-Received: from localhost ([127.0.0.1]:46092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o58iF-0005Z0-IZ for submit@debbugs.gnu.org; Sat, 25 Jun 2022 12:32:47 -0400 Original-Received: from outbound.soverin.net ([185.233.34.21]:36711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o58iD-0005Yl-Tx for 56182@debbugs.gnu.org; Sat, 25 Jun 2022 12:32:46 -0400 Original-Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4LVffb489FzBk; Sat, 25 Jun 2022 16:32:39 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1656174759; bh=tOTR/ox3iFiNBsq2tniJZpgRd0hAxavUB2a9KVds2bo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fu2IJ87BWpcJOVtFym+h4pBBsU5qIdDZI+FFPH2nfSERdtHG7+pqBwJNoRvuBIQCL D3uXsqwkWo0qSpUgzEb30UOOgSc9BF9OtD8ZosTx15oAodPF9mPGZjXNSgbWIxyen9 5nBOIeemUbt9hgbbDAC8cmcAvtoUhysuTT+VwCRoBq2V2F+x6RB5sCTbleajkKevLo vMP7BJQNnXZ1a4v8lY5X7I0tWxKFjRMazN/Rk92EAQYvtg0sBizcDlRkfwH7wM/D2e lx5bFiP4oXmaGZ5TLDvbmJ1fjv0Wo6EOTWsItGAG5pY3L6k9DzWicOcZzynhpWvab/ lo6aQVxBUNaig== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95) (envelope-from ) id 1o58i3-000FWn-5j; Sat, 25 Jun 2022 17:32:35 +0100 Mail-Followup-To: Alan Third , Eli Zaretskii , Lars Ingebrigtsen , pquessev@gmail.com, 56182@debbugs.gnu.org Content-Disposition: inline In-Reply-To: <83czexaycd.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235281 Archived-At: On Sat, Jun 25, 2022 at 12:25:54PM +0300, Eli Zaretskii wrote: > > Cc: 56182@debbugs.gnu.org > > From: Lars Ingebrigtsen > > Date: Fri, 24 Jun 2022 11:23:01 +0200 > > > > Pascal Quesseveur writes: > > > > > Frame background color is set to royalblue4. Display of splash.svg > > > shows a background which looks dark orange. > > > > > > emacs -Q \ > > > --eval="(setq initial-frame-alist (list (cons 'background-color > > > \"royalblue4\")))" > > > > > > (display-about-screen) > > > > I'm unable to reproduce this problem on Debian/bookworm, so it sounds > > like it might be Windows/svg library version dependent: > > Alan, any chance you could look into this? > > If you cannot reproduce it, can you tell which factors affect the > background of SVG images in Emacs 28 in the above scenario? I can't reproduce it. An SVG can override the background colour, but splash.svg does not. The background colour can be set directly using the :background image spec. If none of the above is true then the background is picked up from the face defined in the "it" struct in xdisp.c where the image is defined. If the face number is "-1" (which I suspect is only used for internal usage in image.c, but you'll know better than me) then it uses the default frame face. Barring bugs, I don't think the version of librsvg should have any effect on this as we set the background colour in the wrapper, which as far as I'm aware will work on any SVG renderer. I'm not sure if it's relevant, but in the screenshots provided by Pascal some of the other face colours are different from what I see here and what Lars has in his screenshot. It makes me wonder if there's some other difference that's perhaps affecting this, although I can't imagine what it could be. -- Alan Third