From: Stefan Kangas <stefan@marxist.se>
To: 51515@debbugs.gnu.org
Subject: bug#51515: image-use-external-converter should fall back to another converter if one fails
Date: Sat, 30 Oct 2021 09:21:46 -0700 [thread overview]
Message-ID: <CADwFkm=DWSOFFiqp-gMU06FEx2aRyMEXZDgDNPGy7_ZYVcjviw@mail.gmail.com> (raw)
(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.
reply other threads:[~2021-10-30 16:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkm=DWSOFFiqp-gMU06FEx2aRyMEXZDgDNPGy7_ZYVcjviw@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=51515@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).