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
Archive powered by MHonArc 2.6.19.