[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: |
Fri, 22 Nov 2019 13:16:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Ah, thanks. I verified both these tests work with Emacs -Q.
>
> (with-current-buffer
> (url-retrieve-synchronously
> "https://www.gstatic.com/webp/gallery/1.sm.webp")
> (goto-char (point-min))
> (search-forward "\n\n")
> (image-convert (buffer-substring (point) (point-max)) 'image/webp))
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.
--
(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