GNU bug report logs - #59944
Transparency with alpha-background doesn't work well with PNG images on Emacs 29.0.60

Previous Next

Package: emacs;

Reported by: Satya Prakash Dahal <be2020se701 <at> gces.edu.np>

Date: Sat, 10 Dec 2022 17:46:02 UTC

Severity: normal

Tags: confirmed

To reply to this bug, email your comments to 59944 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59944; Package emacs. (Sat, 10 Dec 2022 17:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Satya Prakash Dahal <be2020se701 <at> gces.edu.np>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 10 Dec 2022 17:46:02 GMT) Full text and rfc822 format available.

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

From: Satya Prakash Dahal <be2020se701 <at> gces.edu.np>
To: bug-gnu-emacs <at> gnu.org
Subject: Transparency with alpha-background doesn't work well with PNG images
 on Emacs 29.0.60
Date: Sat, 10 Dec 2022 19:03:34 +0545
[Message part 1 (text/plain, inline)]
PNG images with a transparent background are not transparent.
Look at the image emacs_png_bug.png on the attachment.
This is my first bug report. If I am missing something please let me know.
Below are the commands i used to compile the emacs.

git clone https://github.com/emacs-mirror/emacs.git
*cd emacs*
*./autogen.sh*
*./configure*

*./configure --with-mailutils && makemake install*
[Message part 2 (text/html, inline)]
[emacs_png_bug.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59944; Package emacs. (Mon, 12 Dec 2022 03:00:01 GMT) Full text and rfc822 format available.

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

From: Po Lu <luangruo <at> yahoo.com>
To: Satya Prakash Dahal <be2020se701 <at> gces.edu.np>
Cc: 59944 <at> debbugs.gnu.org
Subject: Re: bug#59944: Transparency with alpha-background doesn't work well
 with PNG images on Emacs 29.0.60
Date: Mon, 12 Dec 2022 10:59:35 +0800
Satya Prakash Dahal <be2020se701 <at> gces.edu.np> writes:

> PNG images with a transparent background are not transparent. 
> Look at the image emacs_png_bug.png on the attachment.
> This is my first bug report. If I am missing something please let me know.
> Below are the commands i used to compile the emacs.
>
> git clone https://github.com/emacs-mirror/emacs.git
> cd emacs
> ./autogen.sh
> ./configure
> ./configure --with-mailutils && make
> make install

Well, does anyone want to fix this?

It should be "as simple" as making libpng use the same code in
x_query_frame_color to allocate transparent colors.  But I have no idea
how to make libpng do that.

In the meantime, you can use XPM images for that icon instead, which are
free from this problem.




Added tag(s) confirmed. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 04 Sep 2023 15:22:03 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 291 days ago.

Previous Next


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