From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37153: 26.1; some png images scrambled Date: Sat, 24 Aug 2019 09:22:34 +0300 Message-ID: <834l27jd5h.fsf@gnu.org> References: <5b006777-5e97-a641-6f93-83a437ca9ca7@cs.ucla.edu> <44134.15891.158963.23904@gargle.gargle.HOWL> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="208376"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37153@debbugs.gnu.org, eggert@cs.ucla.edu To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 24 08:23:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1PSC-000s5g-AA for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Aug 2019 08:23:12 +0200 Original-Received: from localhost ([::1]:36054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1PSA-0004Bm-I7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Aug 2019 02:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57553) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1PS3-0004Bg-FX for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 02:23:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1PS2-0000cl-HO for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 02:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60918) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1PS2-0000cb-Ef for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 02:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1PS2-0002jo-8H for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 02:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Aug 2019 06:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37153 X-GNU-PR-Package: emacs Original-Received: via spool by 37153-submit@debbugs.gnu.org id=B37153.156662775110473 (code B ref 37153); Sat, 24 Aug 2019 06:23:02 +0000 Original-Received: (at 37153) by debbugs.gnu.org; 24 Aug 2019 06:22:31 +0000 Original-Received: from localhost ([127.0.0.1]:41506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1PRW-0002ir-Vk for submit@debbugs.gnu.org; Sat, 24 Aug 2019 02:22:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1PRU-0002ib-3V for 37153@debbugs.gnu.org; Sat, 24 Aug 2019 02:22:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i1PRO-0000Cq-U2; Sat, 24 Aug 2019 02:22:22 -0400 Original-Received: from [176.228.60.248] (port=1648 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i1PRN-0006Ti-UG; Sat, 24 Aug 2019 02:22:22 -0400 In-reply-to: <44134.15891.158963.23904@gargle.gargle.HOWL> (winkler@gnu.org) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165747 Archived-At: > Date: Fri, 23 Aug 2019 22:17:58 -0500 > From: "Roland Winkler" > Cc: 37153@debbugs.gnu.org > > The problem with my test png image is that it has transparent parts > that need to be displayed with a light color so that one can > recognize the nontransparent dark parts. But the image uses fully > transparent black as background. The behavior in such a case is not > strictly defined by the png standard, see > > https://sourceforge.net/p/png-mng/mailman/message/36747189/ > > Emacs displays such fully transparent background with its original > color specified by the image. But I believe it would make more > sense if emacs used instead a background color that the user can > choose (the background color of the frame), similar to, for example, > eog. Please take a look at image.c in the PNG area: it includes quite a few references to "transparent" and what we should be/are doing with that. > Should I submit a separate feature request for this? I don't think I understand the feature you want to request. Please don't forget that the same PNG image can be displayed on places that have different background colors. I also don't think I see the use cases for such images in Emacs.