unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg')
@ 2011-07-10 23:39 Peter Dyballa
  2011-07-12 21:50 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2011-07-10 23:39 UTC (permalink / raw)
  To: 9045

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






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg')
  2011-07-10 23:39 bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg') Peter Dyballa
@ 2011-07-12 21:50 ` Glenn Morris
  2012-04-26  8:44   ` Chong Yidong
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2011-07-12 21:50 UTC (permalink / raw)
  To: 9045; +Cc: Joakim Verona

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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg')
  2011-07-12 21:50 ` Glenn Morris
@ 2012-04-26  8:44   ` Chong Yidong
  2012-10-23  0:17     ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2012-04-26  8:44 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 9045, Joakim Verona

Glenn Morris <rgm@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg')
  2012-04-26  8:44   ` Chong Yidong
@ 2012-10-23  0:17     ` Glenn Morris
  2012-10-23  0:47       ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2012-10-23  0:17 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 9045

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?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg')
  2012-10-23  0:17     ` Glenn Morris
@ 2012-10-23  0:47       ` Glenn Morris
  0 siblings, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2012-10-23  0:47 UTC (permalink / raw)
  To: 9045-done

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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-23  0:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-10 23:39 bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg') Peter Dyballa
2011-07-12 21:50 ` Glenn Morris
2012-04-26  8:44   ` Chong Yidong
2012-10-23  0:17     ` Glenn Morris
2012-10-23  0:47       ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).