- From: Giovanni Piredda <address@hidden>
- To: address@hidden
- Subject: Re: Gif animations
- Date: Fri, 29 Jan 2021 16:50:52 +0100
On 29.01.21 16:17, Giovanni Piredda wrote:
(Following up)
I took a look at the C++ source code. I understand C++ quite weakly,
maybe someone else can correct/complete what I write.
It looks to me like this.
The relevant files are
Typeset/Boxes/Animate/animate_boxes.cpp
System/Files/image_files.cpp
In image_files the function imagemagick_cmd is defined as
string
imagemagick_cmd () {
if (has_image_magick()) {
#ifdef OS_MINGW
static string image_magick_cmd=
sys_concretize (resolve_in_path ("convert"));
#else
static string image_magick_cmd= "convert";
#endif
return copy (image_magick_cmd);
}
else return "";
}
and *I think* that on Windows before issuing "convert" one must also
write the word "magick"
i.e. on Linux to convert the image gif_image.gif in the current directory:
convert .\gif_image.gif +adjoin -coalesce .\gif_converted_%05d.png
and on Windows
magick convert .\gif_image.gif +adjoin -coalesce .\gif_converted_%05d.png
(I found the format conversion string %05d in a forum, which I cannot
find anymore)
If this is so, then this is the reason why it does not work on Windows.
I confirm that on Linux it works, as Jeroen said.
G.
Archive powered by MHonArc 2.6.19.