GNU bug report logs - #9045
24.0.50; Cannot display image: (Invalid image type `jpeg')

Previous Next

Package: emacs;

Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>

Date: Sun, 10 Jul 2011 23:40:02 UTC

Severity: normal

Merged with 12709, 12710

Found in versions 24.0.50, 24.2.50

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9045 in the body.
You can then email your comments to 9045 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9045; Package emacs. (Sun, 10 Jul 2011 23:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 10 Jul 2011 23:40:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Cannot display image: (Invalid image type `jpeg') 
Date: Mon, 11 Jul 2011 01:39:09 +0200
Hello!

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')

is recorded.

GCC is GCC 4.4.6, Mac OS X 10.5.8, PPC, big-endian.

In GNU Emacs 24.0.50.2 (powerpc-apple-darwin9.8.0, GTK+ Version 2.24.4)
 of 2011-07-10 on Latsche.fritz.box
Windowing system distributor `The X.Org Foundation', version  
11.0.11002000
configured using `configure  '--without-sound' '--without-dbus' '-- 
without-pop' '--without-gconf' '--without-gpm' '--without-gsettings'  
'--without-jpeg' '--without-tiff' '--with-x-toolkit=gtk' '--enable- 
locallisppath=/Library/Application Support/Emacs/calendar24:/Library/ 
Application Support/Emacs' 'CFLAGS=-g -H -pipe -fPIC -fno-common - 
mcpu=7450 -mtune=7450 -maltivec -faltivec -mabi=altivec -Os -mfused- 
madd -mmultiple -ftree-vectorize' 'LDFLAGS=-Wl,-dead_strip_dylibs -Wl,- 
bind_at_load -Wl,-t' 'CC=gcc-4' 'CPP=cpp-4' 'PKG_CONFIG_PATH=/opt/ 
local/lib/pkgconfig:/opt/local/share/pkgconfig:/usr/lib/pkgconfig''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

--
Greetings

  Pete

When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
			– Rinzai, ninth century Zen master





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9045; Package emacs. (Tue, 12 Jul 2011 21:51:01 GMT) Full text and rfc822 format available.

Message #8 received at 9045 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 9045 <at> debbugs.gnu.org
Cc: Joakim Verona <joakim <at> verona.se>
Subject: Re: bug#9045: 24.0.50;
	Cannot display image: (Invalid image type `jpeg')
Date: Tue, 12 Jul 2011 17:50:34 -0400
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9045; Package emacs. (Thu, 26 Apr 2012 08:46:02 GMT) Full text and rfc822 format available.

Message #11 received at 9045 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9045 <at> debbugs.gnu.org, Joakim Verona <joakim <at> verona.se>
Subject: Re: bug#9045: 24.0.50;
	Cannot display image: (Invalid image type `jpeg')
Date: Thu, 26 Apr 2012 16:44:10 +0800
Glenn Morris <rgm <at> gnu.org> writes:

>> 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.

Fixed in trunk.




bug closed, send any further explanations to 9045 <at> debbugs.gnu.org and Peter Dyballa <Peter_Dyballa <at> Freenet.DE> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 26 Apr 2012 08:46:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 May 2012 11:24:03 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 23 Oct 2012 00:18:01 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Oct 2012 00:18:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9045; Package emacs. (Tue, 23 Oct 2012 00:20:02 GMT) Full text and rfc822 format available.

Message #22 received at 9045 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Chong Yidong <cyd <at> gnu.org>
Cc: 9045 <at> debbugs.gnu.org
Subject: Re: bug#9045: 24.0.50;
	Cannot display image: (Invalid image type `jpeg')
Date: Mon, 22 Oct 2012 20:17:41 -0400
Chong Yidong wrote:

>> This happens because in the function `image-type',
>> image-type-from-file-header returns `jpeg', and image-types has no entry
>> for jpeg.
>
> Fixed in trunk.

Problem reintroduced by 2012-06-11 change to imagemagick-register-types.

Perhaps image-type-from-file-name should stop at the first _supported_
image type it finds?




Merged 9045 12709 12710. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 23 Oct 2012 00:20:02 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 23 Oct 2012 00:50:02 GMT) Full text and rfc822 format available.

Notification sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
bug acknowledged by developer. (Tue, 23 Oct 2012 00:50:02 GMT) Full text and rfc822 format available.

Message #29 received at 9045-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 9045-done <at> debbugs.gnu.org
Subject: Re: bug#9045: 24.0.50;
	Cannot display image: (Invalid image type `jpeg')
Date: Mon, 22 Oct 2012 20:47:24 -0400
Version: 24.3

Glenn Morris wrote:

> Problem reintroduced by 2012-06-11 change to imagemagick-register-types.
>
> Perhaps image-type-from-file-name should stop at the first _supported_
> image type it finds?

Installed something along those lines.




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 23 Oct 2012 00:50:02 GMT) Full text and rfc822 format available.

Notification sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
bug acknowledged by developer. (Tue, 23 Oct 2012 00:50:03 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 23 Oct 2012 00:50:03 GMT) Full text and rfc822 format available.

Notification sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
bug acknowledged by developer. (Tue, 23 Oct 2012 00:50:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Nov 2012 12:24:02 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 352 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.