GNU bug report logs - #22253
Background of transparent PNG images uses default background color, instead of current one

Previous Next

Package: emacs;

Reported by: Clément Pit--Claudel <clement.pitclaudel <at> live.com>

Date: Mon, 28 Dec 2015 02:46:02 UTC

Severity: normal

Tags: confirmed, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 22253 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
Cc: 22253 <at> debbugs.gnu.org
Subject: Re: bug#22253: Background of transparent PNG images uses default
 background color, instead of current one
Date: Thu, 01 Aug 2019 18:59:55 +0200
Clément Pit--Claudel <clement.pitclaudel <at> live.com> writes:

> When no :background is specified for a transparent PNG, the background color of the 'default face is used. This causes aliasing effect to appear then e.g. the image is highlighted (transient-mark-mode).
>
> To reproduce (on latest emacs-25):
>
> * Save https://i.stack.imgur.com/BqrLK.png as ~/rooster.png
> * emacs -Q
>   M-: (insert #(" 🐤" 1 2
> 	  (display
> 	   (image :type imagemagick :file "~/rooster.png" :ascent center :mask heuristic :height 150))))
> * Notice that the picture looks perfectly antialiased against the default white background
> * C-x h
> * Notice the aliasing

The only way to fix this would be to re-generate the images whenever the
background colour of the image changes, I guess?  Or to support alpha
channels directly in the display engine, and I don't think we have
support for that?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 323 days ago.

Previous Next


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