From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 38310@debbugs.gnu.org
Subject: bug#38310: 27.0.50; (image-convert "data" t) doesn't work
Date: Mon, 25 Nov 2019 13:11:43 +0900 [thread overview]
Message-ID: <b4mfticppc0.fsf@jpl.org> (raw)
In-Reply-To: <b4m36ehya6w.fsf@jpl.org>
On Fri, 22 Nov 2019 13:16:11 +0100, Lars Ingebrigtsen wrote:
> Perhaps image-convert should signal an explicit error if the second
> parameter isn't on the proper format?
> I've now added some better error feedback on the trunk.
It looks useful for people like me. Thanks.
I think it would be better if we can see what types are available
to convert before trying to convert no matter whether ImageMagick
is built-in. The default value for `imagemagick-enabled-types'
looks old as it does not contain at least WEBP, and there is no
such one that can be used for GraphicsMagick.
The goal might be to make it enable a programmer to do this
without considering whether conversion is necessary or not:
(let ((type "image/webp"))
(if (image-type-displayable-p type)
(create-image "file-or-data" type nil-or-t)))
Regards,
next prev parent reply other threads:[~2019-11-25 4:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-21 7:12 bug#38310: 27.0.50; (image-convert "data" t) doesn't work Katsumi Yamaoka
2019-11-21 12:55 ` Lars Ingebrigtsen
2019-11-22 0:02 ` Katsumi Yamaoka
2019-11-22 12:16 ` Lars Ingebrigtsen
2019-11-25 4:11 ` Katsumi Yamaoka [this message]
2019-11-27 12:04 ` Lars Ingebrigtsen
2019-11-21 13:02 ` Lars Ingebrigtsen
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=b4mfticppc0.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=38310@debbugs.gnu.org \
--cc=larsi@gnus.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).