GNU bug report logs - #37972
Emacs cannot deal with .webp suffix

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 29 Oct 2019 00:33:01 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 37972 in the body.
You can then email your comments to 37972 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 bug-gnu-emacs <at> gnu.org:
bug#37972; Package emacs. (Tue, 29 Oct 2019 00:33:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 29 Oct 2019 00:33:04 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs cannot deal with .webp suffix
Date: Tue, 29 Oct 2019 01:54:39 +0800
$ file *
X.webp: RIFF (little-endian) data, Web/P image...

$ emacs X.webp #binary mess
$ ln X.webp X.gif
$ emacs X.gif #works fine

It doesn't matter what the suffix is: jpg, gif all work the same. Just
webp is not recognized yet.

emacs-version "26.3"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37972; Package emacs. (Tue, 29 Oct 2019 20:45:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 37972 <at> debbugs.gnu.org
Subject: Re: bug#37972: Emacs cannot deal with .webp suffix
Date: Tue, 29 Oct 2019 21:44:25 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> $ file *
> X.webp: RIFF (little-endian) data, Web/P image...
>
> $ emacs X.webp #binary mess
> $ ln X.webp X.gif
> $ emacs X.gif #works fine
>
> It doesn't matter what the suffix is: jpg, gif all work the same. Just
> webp is not recognized yet.

Emacs 27 can display these image formats if you have

(setq image-use-external-converter t)

But this bug report reminded me that we had agreed on defaulting these
exotic image formats to `image-mode', so I've now done that (as well as
fixing the UX of being unable to display images slightly).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 29 Oct 2019 20:45:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 37972 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 29 Oct 2019 20:45:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37972; Package emacs. (Tue, 29 Oct 2019 23:52:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 37972 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#37972: Emacs cannot deal with .webp suffix
Date: Wed, 30 Oct 2019 01:32:08 +0200
>> $ file *
>> X.webp: RIFF (little-endian) data, Web/P image...
>>
>> $ emacs X.webp #binary mess
>> $ ln X.webp X.gif
>> $ emacs X.gif #works fine
>>
>> It doesn't matter what the suffix is: jpg, gif all work the same. Just
>> webp is not recognized yet.

Renaming .webp to .gif displays it, but also spews into stderr:

  Decoded /tmp/magick-6240. Dimensions: 320 x 214 . Format: lossy. Now saving...
  Saved file /tmp/magick-6240

Looks like debug info, should such fprintf be disabled?

Anyway, maybe these messages are less relevant since now we have
image-converter:

> Emacs 27 can display these image formats if you have
>
> (setq image-use-external-converter t)
>
> But this bug report reminded me that we had agreed on defaulting these
> exotic image formats to `image-mode', so I've now done that (as well as
> fixing the UX of being unable to display images slightly).

Thanks.  I tried now to enable image-use-external-converter and visit
a webp image, but it signals an error:

  Cannot display image: (Searching for program No such file or directory gm)

I don't know what this 'gm' is, never used it.  I have only 'convert'
installed.  Is it supported by image-converter?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37972; Package emacs. (Tue, 29 Oct 2019 23:55:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 37972 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#37972: Emacs cannot deal with .webp suffix
Date: Wed, 30 Oct 2019 00:54:33 +0100
Juri Linkov <juri <at> linkov.net> writes:

> Thanks.  I tried now to enable image-use-external-converter and visit
> a webp image, but it signals an error:
>
>   Cannot display image: (Searching for program No such file or directory gm)
>
> I don't know what this 'gm' is, never used it.  I have only 'convert'
> installed.  Is it supported by image-converter?

Yup.  But it looks like there's an error in the detection machinery;
I'll investigate.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37972; Package emacs. (Wed, 30 Oct 2019 00:04:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 37972 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#37972: Emacs cannot deal with .webp suffix
Date: Wed, 30 Oct 2019 01:03:30 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Yup.  But it looks like there's an error in the detection machinery;
> I'll investigate.

This should now be fixed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37972; Package emacs. (Wed, 30 Oct 2019 00:17:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 37972 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#37972: Emacs cannot deal with .webp suffix
Date: Wed, 30 Oct 2019 02:16:08 +0200
>> Yup.  But it looks like there's an error in the detection machinery;
>> I'll investigate.
>
> This should now be fixed.

Thanks, now finally it's possible to view webp images in Emacs without effort.




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

This bug report was last modified 5 years and 292 days ago.

Previous Next


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