GNU bug report logs - #38310
27.0.50; (image-convert "data" t) doesn't work

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Thu, 21 Nov 2019 07:14:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 38310 <at> debbugs.gnu.org
Subject: bug#38310: 27.0.50; (image-convert "data" t) doesn't work
Date: Wed, 27 Nov 2019 13:04:08 +0100
Katsumi Yamaoka <yamaoka <at> 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




This bug report was last modified 5 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.