GNU bug report logs -
#38310
27.0.50; (image-convert "data" t) doesn't work
Previous Next
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
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,
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.