GNU bug report logs - #51515
image-use-external-converter should fall back to another converter if one fails

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Sat, 30 Oct 2021 16:22:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 51515 AT debbugs.gnu.org.

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#51515; Package emacs. (Sat, 30 Oct 2021 16:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefan <at> marxist.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 30 Oct 2021 16:22:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: bug-gnu-emacs <at> gnu.org
Subject: image-use-external-converter should fall back to another converter if
 one fails
Date: Sat, 30 Oct 2021 09:21:46 -0700
(This was previously discussed in Bug#51381.)

Summary: When `image-use-external-converter' is non-nil, don't just give
         up if one fails, try another one.

I have both the GraphicsMagick and ImageMagick tools installed.  The IM
"convert" command supports .heif images, the GM "gm" command does not.

Now I do:

0. curl --output /tmp/C001.heic \
https://raw.githubusercontent.com/nokiatech/heif_conformance/master/conformance_files/C001.heic
1. emacs -Q --eval '(setq image-use-external-converter t)' /tmp/C001.heic

This gives the error message "Unknown image type", as "gm" can't convert
it.  It would be better if it could fall back to use "convert".

Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> We could re-probe the converters when something fails and then
> use the other converter, for instance?  Or we could just probe every
> time, but keep a table of what we've tried.
>
> Or we could probe all the converters at startup, and maintain a mapping
> of which converter does what -- that sounds cleanest.




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 30 Oct 2021 16:54:01 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 231 days ago.

Previous Next


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