From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Several suggestions for image support Date: 16 Apr 2004 14:56:39 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <407FBEFB.8090604@gnu.org> <407FD1BB.9070802@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082121172 29199 80.91.224.253 (16 Apr 2004 13:12:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2004 13:12:52 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 16 15:12:47 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BET9D-0003gC-00 for ; Fri, 16 Apr 2004 15:12:47 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BET9D-0005nH-00 for ; Fri, 16 Apr 2004 15:12:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BET7w-0006in-Mw for emacs-devel@quimby.gnus.org; Fri, 16 Apr 2004 09:11:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BET7A-0006hO-HS for emacs-devel@gnu.org; Fri, 16 Apr 2004 09:10:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BET6c-0006Y2-D7 for emacs-devel@gnu.org; Fri, 16 Apr 2004 09:10:37 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BESth-00046q-42 for emacs-devel@gnu.org; Fri, 16 Apr 2004 08:56:45 -0400 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1BESsw-0001se-U9; Fri, 16 Apr 2004 08:55:59 -0400 Original-To: Jason Rumney In-Reply-To: <407FD1BB.9070802@gnu.org> Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21753 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21753 Jason Rumney writes: > David Kastrup wrote: > > > Anyway: if :heuristic-mask is true, but the majority of corner pixels > > is transparent, it would be nice if just transparency was used as the > > mask criterion. > > > > That way I get at least a heuristic mask if the image > > creating process does not support transparency, but get the > > transparence if it is available in the image. It is not always easy > > to know in advance. > > I see the problem. You don't want to have to know in advance whether > the image has transparency or not. Right. > What about: if the image already has a mask (due to the fact it is a > transparent image), any heuristic mask property should be > ignored. Would that be better than relying on corner pixels being > transparent? Yes. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum