From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: PNG image files with alpha channel Date: Thu, 08 May 2008 22:35:52 -0400 Message-ID: <87ve1o5hmf.fsf@stupidchicken.com> References: <87ve1pdnjq.fsf@stupidchicken.com> <4822EC6F.6000703@gnu.org> <87zlr0yh2y.fsf@catnip.gol.com> <482319D6.1020308@gnu.org> <87tzh8yfdc.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210300873 27232 80.91.229.12 (9 May 2008 02:41:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2008 02:41:13 +0000 (UTC) Cc: emacs-devel@gnu.org, Jason Rumney To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 09 04:41:48 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 1JuIYJ-0006ux-1z for ged-emacs-devel@m.gmane.org; Fri, 09 May 2008 04:41:43 +0200 Original-Received: from localhost ([127.0.0.1]:36823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuIXa-00027I-Pl for ged-emacs-devel@m.gmane.org; Thu, 08 May 2008 22:40:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuIXQ-00024N-EW for emacs-devel@gnu.org; Thu, 08 May 2008 22:40:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuIXO-00023b-OW for emacs-devel@gnu.org; Thu, 08 May 2008 22:40:48 -0400 Original-Received: from [199.232.76.173] (port=45259 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuIXO-00023V-Jz for emacs-devel@gnu.org; Thu, 08 May 2008 22:40:46 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:43667) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JuIXI-0004EK-OT; Thu, 08 May 2008 22:40:40 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id B375F4E585; Thu, 8 May 2008 22:35:52 -0400 (EDT) In-Reply-To: <87tzh8yfdc.fsf@catnip.gol.com> (Miles Bader's message of "Fri, 09 May 2008 00:39:27 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:96850 Archived-At: Miles Bader writes: > So the problem may in fact be something with the libpng 16-to-8-bit > conversion code... I found the error. When setting the background color, we must provide it in the original bit-depth of the image, even if we call png_set_strip_16. So, for 16-bit png images, it's just a matter of supplying the background color at a 16-bit depth. I've checked in a fix.