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

Add method for adjusting gif loop setting #227

Closed
andrewheiss opened this issue Apr 9, 2015 · 1 comment
Closed

Add method for adjusting gif loop setting #227

andrewheiss opened this issue Apr 9, 2015 · 1 comment
Labels
Milestone

Comments

@andrewheiss
Copy link

@andrewheiss andrewheiss commented Apr 9, 2015

When writing an animated gif, the convert command allows you to set a flag for how many times the gif should restart (with 0 = ∞):

convert -loop 0 -delay 100 ... animation.gif

It's possible to set frame delays with Wand

for frame in img.sequence:
    with frame:
        frame.delay = 100

But there's no way to mess with the loop setting:

img.loop = 0  # Doesn't work, obviously

Is there some other way to set arbitrary ImageMagick options, or does this just not work?

@dahlia dahlia added the enhance label Apr 9, 2015
@dahlia
Copy link
Collaborator

@dahlia dahlia commented Apr 9, 2015

It seems possible to implement using MagickSetImageProperty() C API e.g. MagickSetImageProperty(wand, "loop", "0").

@emcconville emcconville added this to the 0.5.0 milestone Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants