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: Some images make Emacs behave strangely Date: Sun, 29 Aug 2010 21:17:00 -0400 Message-ID: <87lj7o6gs3.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283132069 5785 80.91.229.12 (30 Aug 2010 01:34:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 01:34:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 30 03:34:28 2010 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.69) (envelope-from ) id 1OptGN-0005DY-5N for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 03:34:28 +0200 Original-Received: from localhost ([127.0.0.1]:43740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OptFy-0007OD-Hw for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 21:33:54 -0400 Original-Received: from [140.186.70.92] (port=38556 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OptFo-0007Mr-2x for emacs-devel@gnu.org; Sun, 29 Aug 2010 21:33:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Opszf-0006lg-5s for emacs-devel@gnu.org; Sun, 29 Aug 2010 21:17:07 -0400 Original-Received: from pantheon-po44.its.yale.edu ([130.132.50.78]:38607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Opszf-0006la-37 for emacs-devel@gnu.org; Sun, 29 Aug 2010 21:17:03 -0400 Original-Received: from furry (adsl-99-89-95-190.dsl.wlfrct.sbcglobal.net [99.89.95.190]) (authenticated bits=0) by pantheon-po44.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7U1H1LD025445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 29 Aug 2010 21:17:02 -0400 Original-Received: by furry (Postfix, from userid 1000) id 733BB16D402; Sun, 29 Aug 2010 21:17:00 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 29 Aug 2010 17:20:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:129407 Archived-At: Lars Magne Ingebrigtsen writes: > Here's an image from the pheedo web tracking ad thingie whatever: > > [larsi@quimbies ~/pgnus]$ file /tmp/a > /tmp/a: GIF image data, version 89a, 1 x 1 > > However: > > (image-size (create-image "/tmp/a") t) > => (30 . 30) > > And inserting that image into the buffer yields an empty 30x30 box: > > (put-image (create-image "/tmp/a") (point)) Emacs fails to load the image, because DGifSlurp returns GIF_ERROR when we try to load its contents into memory. I dunno what else we could do to avoid failing (or why the GIMP seems to be able to handle this gif). If I create a 1x1 gif file using the GIMP, Emacs can read it perfectly.