From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: PNG image files with alpha channel Date: Thu, 08 May 2008 13:46:28 +0900 Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210222022 2389 80.91.229.12 (8 May 2008 04:47:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2008 04:47:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 08 06:47:38 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jty2W-0002Uv-IE for ged-emacs-devel@m.gmane.org; Thu, 08 May 2008 06:47:32 +0200 Original-Received: from localhost ([127.0.0.1]:50946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jty1o-0008Pr-I3 for ged-emacs-devel@m.gmane.org; Thu, 08 May 2008 00:46:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jty1j-0008Nx-4V for emacs-devel@gnu.org; Thu, 08 May 2008 00:46:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jty1h-0008N6-Gl for emacs-devel@gnu.org; Thu, 08 May 2008 00:46:42 -0400 Original-Received: from [199.232.76.173] (port=54699 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jty1h-0008My-AU for emacs-devel@gnu.org; Thu, 08 May 2008 00:46:41 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:57683) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jty1b-0000cT-UG; Thu, 08 May 2008 00:46:36 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m484k3DQ013525; Thu, 8 May 2008 13:46:30 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay21.aps.necel.com with ESMTP; Thu, 8 May 2008 13:46:30 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay11.aps.necel.com with ESMTP; Thu, 8 May 2008 13:46:30 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 2BBE764E; Thu, 8 May 2008 13:46:29 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop Original-Lines: 25 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96730 Archived-At: Is Emacs supposed to properly handle an alpha channel in a PNG file? I vaguely recall that it used to do something halfway reasonable (even if just merging in the default bg color), but now it seem to simply ignore an alpha channel. E.g., using default settings, with a white background, do: (insert-image (create-image "image-with-alpha.png")) [The create-image :background parameter seems to have no effect either.] If you don't have an alpha-channel-bearing image, try this: http://download.savannah.gnu.org/releases/emacs/icons/emacs5-256.png The "background" around the sphere has an alpha channel that's mostly zero. Thanks, -Miles -- Politeness, n. The most acceptable hypocrisy.