unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51515: image-use-external-converter should fall back to another converter if one fails
@ 2021-10-30 16:21 Stefan Kangas
  0 siblings, 0 replies; only message in thread
From: Stefan Kangas @ 2021-10-30 16:21 UTC (permalink / raw)
  To: 51515

(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@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.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-30 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30 16:21 bug#51515: image-use-external-converter should fall back to another converter if one fails Stefan Kangas

Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).