Skip to content

options in animation.movie has no effect #567

@ChiMaoShuPhy

Description

@ChiMaoShuPhy

Seems that the arg options in function movie from the animation module does not have any effect on output. For an example

import animation;
animation anim;

....

anim.movie(loops=0,delay=50, options="-density 288");

-density 288 won't be passed to migick (checked by calling asy -vvvv)

Probably due to that options is appended to the end of args in Line 80

string args="-loop " +(string) loops+" -delay "+(string)(delay/10);
for(int i=0; i < files.length; ++i)
args += " "+files[i];
args += " -alpha Off -dispose Background "+options;
int rc=convert(args,prefix+"."+format,format=format);
this.purge(keep);

I find a workaround by modifying those lines as

    string args=options+" -loop " +(string) loops+" -delay "+(string)(delay/10);
    for(int i=0; i < files.length; ++i)
    args += " "+files[i];
    args += " -alpha Off -dispose Background ";

so that options are placed in front of file names to be processed by magick and options are passed correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions