Subject: Re: bug#38310: 27.0.50; (image-convert "data" t) doesn't work

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 27 Nov 2019 13:04:08 +0100

Katsumi Yamaoka <[email-masked]> writes:

> 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)))

Yes, that would be nice.  But you can almost do that with just

(ignore-errors (create-image file))

:-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no