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

Full log


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.




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.