From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg') Date: Tue, 12 Jul 2011 17:50:34 -0400 Message-ID: References: <8A9CE56A-3B05-4B96-8453-3910462FEB31@Freenet.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310507930 30833 80.91.229.12 (12 Jul 2011 21:58:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 21:58:50 +0000 (UTC) Cc: Joakim Verona To: 9045@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 23:58:46 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qgkyb-0000zI-Kv for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 23:58:45 +0200 Original-Received: from localhost ([::1]:43382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgkya-0000Gy-B0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 17:58:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgkrA-0006dl-R4 for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 17:51:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qgkr9-0003od-8b for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 17:51:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgkr8-0003oT-Vu for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 17:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qgkr8-00061F-0W; Tue, 12 Jul 2011 17:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2011 21:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9045 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9045-submit@debbugs.gnu.org id=B9045.131050744623109 (code B ref 9045); Tue, 12 Jul 2011 21:51:01 +0000 Original-Received: (at 9045) by debbugs.gnu.org; 12 Jul 2011 21:50:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qgkqs-00060g-7U for submit@debbugs.gnu.org; Tue, 12 Jul 2011 17:50:46 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qgkqq-00060U-IN for 9045@debbugs.gnu.org; Tue, 12 Jul 2011 17:50:45 -0400 Original-Received: from localhost ([127.0.0.1]:59945) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgkqg-0007Sv-P6; Tue, 12 Jul 2011 17:50:34 -0400 X-Spook: MD2 high security Crypto AG Axis of Evil ASO AFSPC enemy X-Ran: bWP$uCWvTS/(T<'yfc+N\z)nwNEpl9P\fP)qox_U,^YI^;uG9Mv'-^gD9CT9OBK"b'n@-h X-Hue: black X-Attribution: GM In-Reply-To: <8A9CE56A-3B05-4B96-8453-3910462FEB31@Freenet.DE> (Peter Dyballa's message of "Mon, 11 Jul 2011 01:39:09 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 12 Jul 2011 17:51:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48798 Archived-At: Peter Dyballa wrote: > I have configured GNU Emacs without direct JPEG and TIFF support. > After launching it with -Q I execute in *scratch* buffer > > (imagemagick-register-types) > > (nil is returned). When I view from dired file.jpeg, then only its > bytes are displayed in a (Fundamental Image View) buffer. In > *Messages* buffer > > Cannot display image: (Invalid image type `jpeg') This happens because in the function `image-type', image-type-from-file-header returns `jpeg', and image-types has no entry for jpeg. image-type-from-file-name on the other hand, returns `imagemagick', and image-types does have an entry for this. Simply swapping the order of the tests in image-type doesn't seem like the right fix though.