From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#37153: 26.1; some png images scrambled Date: Mon, 26 Aug 2019 08:06:05 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <5b006777-5e97-a641-6f93-83a437ca9ca7@cs.ucla.edu> <44134.15891.158963.23904@gargle.gargle.HOWL> <9c4c68ebe20cbcc44763be8e72bd25eb.squirrel@weber.math.s.chiba-u.ac.jp> <5136.20784.40920.23906@gargle.gargle.HOWL> <4a893dc7-659a-be76-01d3-3f0a4de57ba4@cs.ucla.edu> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="90214"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 37153@debbugs.gnu.org, Roland Winkler To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 26 01:07: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 1i21bJ-000NGo-Og for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Aug 2019 01:07:09 +0200 Original-Received: from localhost ([::1]:48648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i21bI-0001WH-Mt for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 19:07:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40515) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i21bD-0001W8-1r for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 19:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i21bB-0005BB-UO for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 19:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i21bB-0005AQ-QZ for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 19:07:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i21bB-0006wF-Jn for bug-gnu-emacs@gnu.org; Sun, 25 Aug 2019 19:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Aug 2019 23:07:01 +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.156677436726604 (code B ref 37153); Sun, 25 Aug 2019 23:07:01 +0000 Original-Received: (at 37153) by debbugs.gnu.org; 25 Aug 2019 23:06:07 +0000 Original-Received: from localhost ([127.0.0.1]:45235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i21aJ-0006v0-4U for submit@debbugs.gnu.org; Sun, 25 Aug 2019 19:06:07 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:62255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i21aG-0006ur-He for 37153@debbugs.gnu.org; Sun, 25 Aug 2019 19:06:05 -0400 Original-Received: from mathent.math.s.chiba-u.ac.jp (mathent [192.168.32.5]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 24CBAF08E0; Mon, 26 Aug 2019 08:06:05 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) In-Reply-To: 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:165864 Archived-At: On Mon, 26 Aug 2019 08:02:23 +0900, YAMAMOTO Mitsuharu wrote: > > On Mon, 26 Aug 2019 03:38:07 +0900, > Paul Eggert wrote: > > > > YAMAMOTO Mitsuharu wrote: > > > > > It seems to be necessary to look into the tRNS chunk data for paletted > > > images. Again, W32 would need some more work. > > > > Thanks, I confirmed that this fixes the misdisplay for me as well. I > > attempted to port it to w32 (as well as to unusual libpng builds that > > do not define PNG_tRNS_SUPPORTED) and installed the attached into > > master. > > > > With this patch on Ubuntu 18.04.3 I always see the first image shown > > in your tRNS.pg screenshot . So it may > > be that more work needs to be done to support other faces. Still, this > > patch is an improvement so it's worth going in. > > At least, your patch misses the case of non-paletted transparent PNGs > (tb???c?? in http://www.schaik.com/pngsuite2011/pngsuite_trn_png.html). And you would need to turn off font-lock-mode (or start Emacs with -D) to replicate my tRNS.png screenshot. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp