From: Katsumi Yamaoka <yamaoka@jpl.org>
To: 38310@debbugs.gnu.org
Subject: bug#38310: 27.0.50; (image-convert "data" t) doesn't work
Date: Thu, 21 Nov 2019 16:12:39 +0900 [thread overview]
Message-ID: <b4m36ehya6w.fsf@jpl.org> (raw)
Hi,
Whereas (image-convert "file") works, (image-convert "data" t)
causes an error as follows:
(let ((image-converter 'graphicsmagick))
(image-convert "data" t))
=>
image-convert: /usr/bin/gm convert: Unable to open file (-) [No such file or directory].
(let ((image-converter 'imagemagick))
(image-convert "data" t))
=>
image-convert: convert: unable to open image `nil:-': No such file or directory @ error/blob.c/OpenBlob/2873.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/560.
convert: no images defined `png:-' @ error/convert.c/ConvertImageCommand/3258.
Where "data" is a binary string of a webp image gotten from:
<https://www.gstatic.com/webp/gallery/1.sm.webp>
Is a temp file required instead of stdin to those converters?
In relation to this, I think `image-convert' should be autoloaded
for the case where `(create-image FILE-OR-DATA 'image-convert)'
is called from a program other than `find-file'.
Thanks.
Regards,
$ gm -version
GraphicsMagick 1.3.33 2019-07-20 Q16 http://www.GraphicsMagick.org/
$ convert -version
ImageMagick 6.9.10-11 Q16 x86_64 2018-09-08 https://www.imagemagick.org
next reply other threads:[~2019-11-21 7:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-21 7:12 Katsumi Yamaoka [this message]
2019-11-21 12:55 ` bug#38310: 27.0.50; (image-convert "data" t) doesn't work Lars Ingebrigtsen
2019-11-22 0:02 ` Katsumi Yamaoka
2019-11-22 12:16 ` Lars Ingebrigtsen
2019-11-25 4:11 ` Katsumi Yamaoka
2019-11-27 12:04 ` Lars Ingebrigtsen
2019-11-21 13:02 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4m36ehya6w.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=38310@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.