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

default loop count should be 1 #169

Closed
wants to merge 1 commit into from

Conversation

keewon
Copy link

@keewon keewon commented Dec 28, 2016

When Netscape Extension is not available in GIF, most web browsers play it only once.
But currently FLAnimatedImage plays it forever.
To fix this, need to check key LoopCount exists in the dictionary. When it doesn't exist, default value should be 1.

Can verify with this image: http://ww3.sinaimg.cn/mw1024/685b99a9gw1f0dbnnt07eg2053051mx5.gif

Following issue is related to this PR:
#156

@kgaidis
Copy link

kgaidis commented Oct 23, 2017

@cjcaufield

This PR fixed an issue where a GIF in a browser would stop looping, but on the iOS mobile app it would not. I would maybe consider merging this unless it has been solved elsewhere

@raphaelschaad
Copy link
Collaborator

@keewon Is this the same as #102 ?

@keewon
Copy link
Author

keewon commented Jan 31, 2021

@raphaelschaad I think #102 is a superset of this PR. You can close my PR if you will merge #102 .

@raphaelschaad
Copy link
Collaborator

Awesome, thanks @keewon, will look into #102 then.

@raphaelschaad
Copy link
Collaborator

I had a look and left a detailed comment here. I don't see a difference between Chrome/Safari and FLAnimatedImage.

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

Successfully merging this pull request may close these issues.

3 participants