[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#38310: 27.0.50; (image-convert "data" t) doesn't work
From: |
Lars Ingebrigtsen |
Subject: |
bug#38310: 27.0.50; (image-convert "data" t) doesn't work |
Date: |
Wed, 27 Nov 2019 13:04:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Katsumi Yamaoka <yamaoka@jpl.org> 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
bug#38310: 27.0.50; (image-convert "data" t) doesn't work, Lars Ingebrigtsen, 2019/11/21