From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: xah lee Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: unable to open jpg file Date: Mon, 14 Jan 2008 05:42:36 -0800 Message-ID: References: <61562314-8495-4E17-A6BE-C2F73B85155B@xahlee.org> <372F90F5-325B-46D5-99ED-BB315E37EF0C@xahlee.org> <478B618B.6040404@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1200318183 4299 80.91.229.12 (14 Jan 2008 13:43:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 13:43:03 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, YAMAMOTO Mitsuharu To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 14:43:24 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 1JEPb0-0003lO-6j for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2008 14:43:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEPab-0007e1-Up for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2008 08:42:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEPaX-0007ab-TN for emacs-devel@gnu.org; Mon, 14 Jan 2008 08:42:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEPaV-0007XD-SY for emacs-devel@gnu.org; Mon, 14 Jan 2008 08:42:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEPaV-0007X2-OZ for emacs-devel@gnu.org; Mon, 14 Jan 2008 08:42:51 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEPaV-00046d-G2 for emacs-devel@gnu.org; Mon, 14 Jan 2008 08:42:51 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JEPaV-0006Yw-4s for emacs-pretest-bug@gnu.org; Mon, 14 Jan 2008 08:42:51 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JEPaS-00045r-1x for emacs-pretest-bug@gnu.org; Mon, 14 Jan 2008 08:42:51 -0500 Original-Received: from mout.perfora.net ([74.208.4.197]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEPaR-00045L-Ny; Mon, 14 Jan 2008 08:42:47 -0500 Original-Received: from [192.168.1.3] (adsl-69-236-107-188.dsl.pltn13.pacbell.net [69.236.107.188]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0MKp8S-1JEPaM27WP-0004KN; Mon, 14 Jan 2008 08:42:46 -0500 In-Reply-To: <478B618B.6040404@gnu.org> X-Mailer: Apple Mail (2.753) X-Provags-ID: V01U2FsdGVkX1+Lfed1LDojXtYbInP3UGxYrOytZzzi4QIfsqj 9c/A/jVZAbDe4Qn7e0USMvzACnEJd6Ei16Lz9CYoOFAc15gHC7 7f83nJQsdrqbn+gY2EpJw== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:86889 gmane.emacs.pretest.bugs:20639 Archived-At: I followed your instruction and that fixed the problem for my =20 original images. Thanks. Xah xah@xahlee.org =E2=88=91 http://xahlee.org/ On Jan 14, 2008, at 5:20 AM, Jason Rumney wrote: YAMAMOTO Mitsuharu wrote: > As image-jpeg-p returns nil for that image data (no "JFIF" or "Exif" > as a substring), it couldn't be displayed even with the X11 version, > either. As this is not Carbon-specific, I would like to leave the > issue to those who are more familiar with image.el and/or image format > spec. > I found some more work friendly non-JFIF/Exif JPEG images here: http://www.marysvilletourism.com/media/index.htm Firefox and Emacs 22 fail to display these images, but Emacs trunk =20 displays them (is this the case with the images in the original =20 report?). The difference between Emacs 22 and trunk seems to be in the function =20= image-type. In Emacs 22, if the image headers do not determine the =20 type, we convert the file extension to a symbol and use that. This =20 means .jpg files are given a type of 'jpg, which is not the correct =20 image-type for jpeg images. The trunk has been changed to use image-type-from-file-name instead, =20 which correctly returns 'jpeg for that image. I have backported that change to emacs-22. =E2=98=84