Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

long animations not working with saveGIF #87

Open
JeromeMathieuEcology opened this issue Nov 21, 2016 · 3 comments
Open

long animations not working with saveGIF #87

JeromeMathieuEcology opened this issue Nov 21, 2016 · 3 comments

Comments

@JeromeMathieuEcology
Copy link

Hi,

When I try to make an animated plot with many steps (many images), saveGIF throw an error :
"command line too long".

I think it is because the command sent to convert contains the list of the images to work on, and it is too long for large animations.

Perhaps it could be handled by sending instead something like
convert *.png -delay 3 -loop 0 binom.gif

Here's Microsoft's page on similar problem
https://support.microsoft.com/en-us/kb/830473

Is there a way to fix this issue?
Thanks,
Jerome

@yulijia
Copy link
Collaborator

yulijia commented Nov 22, 2016

How many images do you used in making a animation?

Both ImageMagick and GraphicsMagick may have a limit on the number of images to be converted. It is a known issue that this function can fail with more than (approximately) 9000 images. The function saveVideo is a better alternative in such a case.

@espinielli
Copy link

I found a solution see thomasp85/gganimate#47
You have to use ImageMagick internal filename globbing by quoting your filenames (note the quoted "*.png"):

convert "*.png" -delay 3 -loop 0 binom.gif

@JeromeMathieuEcology
Copy link
Author

JeromeMathieuEcology commented Jun 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants