* Does image-converter work under Windows?
@ 2022-06-29 16:57 Pascal Quesseveur
2022-06-29 17:29 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Pascal Quesseveur @ 2022-06-29 16:57 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I am unable to get image-converter to work with emacs 28.1 on Windows
10. I start with:
runemacs -Q
then:
(auto-image-file-mode 1)
(setq image-use-external-converter t
image-converter 'graphicsmagick)
GrpahicsMagick 1.3.36 Q16 win64 is installed and working fine. I can
test an image in SunRaster format:
(image-convert-p "C:/Users/.../img.ras") -> image-convert
then I enter:
(add-to-list 'auto-mode-alist '("\\.ras\\'" . image-mode))
and if I visit the sunraster file I get the following error in the
Messages buffer:
Not a PNG image: ‘(image :type png :data \211PNG
^Z
...
`\202 :scale 1 :max-width 640 :max-height 544 :format nil
:transform-smoothing t)’
Did I miss something?
--
Pascal Quesseveur
pquessev@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does image-converter work under Windows?
2022-06-29 16:57 Does image-converter work under Windows? Pascal Quesseveur
@ 2022-06-29 17:29 ` Eli Zaretskii
2022-06-30 6:17 ` Pascal Quesseveur
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2022-06-29 17:29 UTC (permalink / raw)
To: help-gnu-emacs
> From: Pascal Quesseveur <pquessev@gmail.com>
> Date: Wed, 29 Jun 2022 18:57:40 +0200
>
> and if I visit the sunraster file I get the following error in the
> Messages buffer:
>
> Not a PNG image: ‘(image :type png :data \211PNG
> ^Z
> ...
> `\202 :scale 1 :max-width 640 :max-height 544 :format nil
> :transform-smoothing t)’
>
> Did I miss something?
Please report this as a bug: I suspect we don't bind
coding-system-for-read to prevent EOL conversion when we read the
produced PNG data. The signature of a PNG image should have a CR
character after "PNG" and before ^Z, and that is missing according to
the error message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does image-converter work under Windows?
2022-06-29 17:29 ` Eli Zaretskii
@ 2022-06-30 6:17 ` Pascal Quesseveur
0 siblings, 0 replies; 3+ messages in thread
From: Pascal Quesseveur @ 2022-06-30 6:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
>"EZ" == Eli Zaretskii <eliz@gnu.org> a écrit :
EZ> Please report this as a bug
Ok, done.
--
Pascal Quesseveur
pquessev@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-30 6:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-29 16:57 Does image-converter work under Windows? Pascal Quesseveur
2022-06-29 17:29 ` Eli Zaretskii
2022-06-30 6:17 ` Pascal Quesseveur
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.