all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: 9045@debbugs.gnu.org
Cc: Joakim Verona <joakim@verona.se>
Subject: bug#9045: 24.0.50; Cannot display image: (Invalid image type `jpeg')
Date: Tue, 12 Jul 2011 17:50:34 -0400	[thread overview]
Message-ID: <prvcv788yd.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <8A9CE56A-3B05-4B96-8453-3910462FEB31@Freenet.DE> (Peter Dyballa's message of "Mon, 11 Jul 2011 01:39:09 +0200")

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.





  reply	other threads:[~2011-07-12 21:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-04-26  8:44   ` Chong Yidong
2012-10-23  0:17     ` Glenn Morris
2012-10-23  0:47       ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=prvcv788yd.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=9045@debbugs.gnu.org \
    --cc=joakim@verona.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.