Gnus development mailing list
 help / color / mirror / Atom feed
* Problem with inlined unsupported image types
@ 2010-09-26 18:37 Knut Anders Hatlen
  2010-09-26 18:41 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Knut Anders Hatlen @ 2010-09-26 18:37 UTC (permalink / raw)
  To: ding

Hi,

I have an Emacs that's compiled with --without-gif (it's the Emacs that
comes with Solaris). If an HTML mail contains a remote gif image and I
press W D W, an icon that illustrates a broken image is shown (well,
actually, it illustrates a broken lock, but that's close enough, I
suppose...). That's fine, of course.

But if the HTML mail contains an inlined gif image, I get the error
"Invalid image type `gif'", and the mail is shown in raw format. Here's
the backtrace:

Debugger entered--Lisp error: (error "Invalid image type `gif'")
  signal(error ("Invalid image type `gif'"))
  error("Invalid image type `%s'" gif)
  image-type("GIF89ar...." nil t)
  create-image("GIF89ar...." nil t)
  apply(create-image "GIF89ar...." nil t nil)
  gnus-create-image("GIF89ar...." nil t)
  gnus-html-wash-images()
  gnus-html-wash-tags()
  gnus-article-html((#<buffer  *mm*<4>> ("text/html" (charset . "ISO-8859-1")) 7bit nil nil nil nil nil))

I suppose we should somehow detect if the image type is supported and
make the same thing happen with inlined images as with remote images?

-- 
Knut Anders




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

* Re: Problem with inlined unsupported image types
  2010-09-26 18:37 Problem with inlined unsupported image types Knut Anders Hatlen
@ 2010-09-26 18:41 ` Lars Magne Ingebrigtsen
  2010-09-26 19:01   ` Knut Anders Hatlen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-26 18:41 UTC (permalink / raw)
  To: ding

Knut Anders Hatlen <kahatlen@gmail.com> writes:

> Debugger entered--Lisp error: (error "Invalid image type `gif'")
>   signal(error ("Invalid image type `gif'"))
>   error("Invalid image type `%s'" gif)
>   image-type("GIF89ar...." nil t)
>   create-image("GIF89ar...." nil t)
>   apply(create-image "GIF89ar...." nil t nil)
>   gnus-create-image("GIF89ar...." nil t)

Ok; I've just slapped an `ignore-errors' around the `create-image' call.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Problem with inlined unsupported image types
  2010-09-26 18:41 ` Lars Magne Ingebrigtsen
@ 2010-09-26 19:01   ` Knut Anders Hatlen
  0 siblings, 0 replies; 3+ messages in thread
From: Knut Anders Hatlen @ 2010-09-26 19:01 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Knut Anders Hatlen <kahatlen@gmail.com> writes:
>
>> Debugger entered--Lisp error: (error "Invalid image type `gif'")
>>   signal(error ("Invalid image type `gif'"))
>>   error("Invalid image type `%s'" gif)
>>   image-type("GIF89ar...." nil t)
>>   create-image("GIF89ar...." nil t)
>>   apply(create-image "GIF89ar...." nil t nil)
>>   gnus-create-image("GIF89ar...." nil t)
>
> Ok; I've just slapped an `ignore-errors' around the `create-image' call.

That did the trick. Thanks!

-- 
Knut Anders




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

end of thread, other threads:[~2010-09-26 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-26 18:37 Problem with inlined unsupported image types Knut Anders Hatlen
2010-09-26 18:41 ` Lars Magne Ingebrigtsen
2010-09-26 19:01   ` Knut Anders Hatlen

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 NNTP newsgroup(s).