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

From: Katsumi Yamaoka <[email-masked]>
Date: Fri, 22 Nov 2019 09:02:23 +0900

On Thu, 21 Nov 2019 13:55:48 +0100, Lars Ingebrigtsen wrote:
> So you have to say

> (image-convert "data" 'image/webp)

> I'll rephrase the doc string, because it's not very well-written.

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

(with-current-buffer
    (url-retrieve-synchronously
     "https://www.gstatic.com/webp/gallery/1.sm.webp")
  (goto-char (point-min))
  (search-forward "\n\n")
  (create-image (buffer-substring (point) (point-max)) 'image-convert
		t :format 'image/webp))