From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#47040: 27.1; PNG binary transparency is ignored Date: Wed, 10 Mar 2021 19:45:58 +0900 Message-ID: <86o8fr1e3d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40547"; mail-complaints-to="usenet@ciao.gmane.io" To: 47040@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 10 11:47:58 2021 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 1lJwNi-000AQ1-61 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Mar 2021 11:47:58 +0100 Original-Received: from localhost ([::1]:44838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJwNh-00039F-8l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Mar 2021 05:47:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJwMo-0002p7-UA for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 05:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJwMo-0002AF-MR for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 05:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJwMo-0006mh-LJ for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 05:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Mar 2021 10:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47040 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161537317126011 (code B ref -1); Wed, 10 Mar 2021 10:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Mar 2021 10:46:11 +0000 Original-Received: from localhost ([127.0.0.1]:48897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJwLz-0006lT-1r for submit@debbugs.gnu.org; Wed, 10 Mar 2021 05:46:11 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJwLv-0006lF-7E for submit@debbugs.gnu.org; Wed, 10 Mar 2021 05:46:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJwLu-00026Z-VC for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 05:46:06 -0500 Original-Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:32777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJwLs-0001VS-Rx for bug-gnu-emacs@gnu.org; Wed, 10 Mar 2021 05:46:06 -0500 Original-Received: by mail-pg1-x535.google.com with SMTP id g4so11157277pgj.0 for ; Wed, 10 Mar 2021 02:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=w2tbAh3Xe+pDYtbRs2KJ92b7/pxnshO8t3V/VTNJX8E=; b=SF5ymC6rGr2wZvaSiBRuXoBNh9AvlfzwTEkewNw2xwhKmgFHcybjx3pzKLrdkGmve2 9oMldV9uzZL/iWXUsK0NvAjE5X1cLgNgX9AShKNorZMHuBidaoAop4YPfuqbbuqGHD7i 7VS1h/hlGyYPZkM71hAzd70MB+wCtUfr5jTG3n3ahi4gb0swhQg+cllONtakm3h96GFS CaxsHQ99n2CcDmtoG3vPp55pHi+UVscQ79aQg7D8tOqjlpLuo6SLeJMYaqviqoofcknQ 5U+9Q1MOPmHzP/QBejVkvVuKO0tjoeEYpUSDeC9mMJHPE5aSswvohWHEbw9Nb0zENj9s 9JpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=w2tbAh3Xe+pDYtbRs2KJ92b7/pxnshO8t3V/VTNJX8E=; b=teixVjFOvl1KzSFtFPAQ4voJtnEXNEnBQ4ttxutS2qIUKkiOMeFoe+XokOrM1QOKvd 7YPWtH5JmGUMi0BpNboYijTgpflHyu9IhkTSOzeUW5ac6jF53OKUWMR4os15Os84DGsP cFpz+jACZ5dX9Btu9LDMdfV/BxP0zyHFpDsR+/xhOOgPvAMDvE4yY8D1OBBS133vVHbi ktTU8a5gYQen2plvq3ebaK7fazLjLGuG/WampBwJO32c4u4v2trl28M3AhUzrkOvYv7+ +ZFfEO+XrJyfd1zWKUgkxPdq30W+jwB0ktiVK8VUlZGn6HqW51eFDqopQQ8hEb5M6pCd 8SFg== X-Gm-Message-State: AOAM532aKvXqYg8Q0H1iMJVfYtrrCLLf324vVcupkYOu7OEBPgR1E2Rw MI9chS6iCF6dTOss00GaNB0Gm1lZmUk= X-Google-Smtp-Source: ABdhPJzBcdhEfEh1/xIqDSPg0mvVLYSqkRIrxgjCSaipi70pjPQvB2DPCVxAAKcBX892mWtoWvA4tg== X-Received: by 2002:a65:6205:: with SMTP id d5mr2308839pgv.40.1615373163216; Wed, 10 Mar 2021 02:46:03 -0800 (PST) Original-Received: from HP (east42-p109.eaccess.hi-ho.ne.jp. [219.121.173.110]) by smtp.gmail.com with ESMTPSA id t22sm6168461pjw.54.2021.03.10.02.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 02:46:02 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=ynyaaa@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:201966 Archived-At: --=-=-= Content-Type: text/plain If a PNG file has a aplpha plain composeed of only 0 or 255, its transparency is ignored. The attached file transparent1.png is a red sqaure framed with a green line, where red pixels have 0 for alpha value and green pixels have 255 for alpha value. transparent2.png is a similar image, but the alpha values for green pixels are 254. Red pixels in the both images have 0 for alpha value, so they should be transparent and invisible, but transparent1.png is displayed as a red square with a green frame in a emacs buffer. transparent2.png is displayed as a white square with a green frame as expected. When they are displayed in a chrome browser, inner squares of the both images are displayed as transparent. --=-=-= Content-Type: image/png Content-Disposition: attachment; filename=transparent1.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/AAAA/wD///8A9gQV AAAAAXRSTlMAQObYZgAAAAFiS0dEAmYLfGQAAAAHdElNRQflAwsEBBhq9SjOAAAAFElEQVQI12MI BQIGBwYGRsoJkFEA/esGN714MCUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDMtMTBUMTk6MDQ6 MjQrMDk6MDDnV2jYAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAzLTEwVDE5OjA0OjI0KzA5OjAw lgrQZAAAAABJRU5ErkJggg== --=-=-= Content-Type: image/png Content-Disposition: attachment; filename=transparent2.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/AAAA/wD///8A9gQV AAAAAnRSTlMA/iyWEiMAAAABYktHRAJmC3xkAAAAB3RJTUUH5QMLBAQf9JG9bQAAABRJREFUCNdj CAUCBgcGBkbKCZBRAP3rBje9eDAlAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAzLTEwVDE5OjA0 OjMxKzA5OjAwecVH4QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMy0xMFQxOTowNDozMSswOTow MAiY/10AAAAASUVORK5CYII= --=-=-= Content-Type: text/plain In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-22 built on CIRROCUMULUS Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.18363 System Description: Microsoft Windows 10 Pro (v10.0.1909.18363.1379) Recent messages: Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (mule-util eieio-opt cl-extra speedbar sb-image ezimage dframe apropos image-mode exif dired-aux gnutls network-stream nsm mailalias smtpmail auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs json map misearch multi-isearch pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib term/bobcat japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 81166 41710) (symbols 48 9599 0) (strings 32 27679 2980) (string-bytes 1 803013) (vectors 16 15294) (vector-slots 8 285442 20934) (floats 8 48 289) (intervals 56 1355 1190) (buffers 1000 28)) --=-=-=--