{"action":"created","issue":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/1951","repository_url":"https://api.github.com/repos/rs/SDWebImage","labels_url":"https://api.github.com/repos/rs/SDWebImage/issues/1951/labels{/name}","comments_url":"https://api.github.com/repos/rs/SDWebImage/issues/1951/comments","events_url":"https://api.github.com/repos/rs/SDWebImage/issues/1951/events","html_url":"https://github.com/rs/SDWebImage/issues/1951","id":239385079,"number":1951,"title":"Animated WebP Image not showing correctly using UIImageView or FLAnimatedImageView","user":{"login":"dreampiggy","id":6919743,"avatar_url":"https://avatars2.githubusercontent.com/u/6919743?v=4","gravatar_id":"","url":"https://api.github.com/users/dreampiggy","html_url":"https://github.com/dreampiggy","followers_url":"https://api.github.com/users/dreampiggy/followers","following_url":"https://api.github.com/users/dreampiggy/following{/other_user}","gists_url":"https://api.github.com/users/dreampiggy/gists{/gist_id}","starred_url":"https://api.github.com/users/dreampiggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreampiggy/subscriptions","organizations_url":"https://api.github.com/users/dreampiggy/orgs","repos_url":"https://api.github.com/users/dreampiggy/repos","events_url":"https://api.github.com/users/dreampiggy/events{/privacy}","received_events_url":"https://api.github.com/users/dreampiggy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rs/SDWebImage/milestones/13","html_url":"https://github.com/rs/SDWebImage/milestone/13","labels_url":"https://api.github.com/repos/rs/SDWebImage/milestones/13/labels","id":2285550,"number":13,"title":"4.1.0","description":"","creator":{"login":"bpoplauschi","id":154913,"avatar_url":"https://avatars2.githubusercontent.com/u/154913?v=4","gravatar_id":"","url":"https://api.github.com/users/bpoplauschi","html_url":"https://github.com/bpoplauschi","followers_url":"https://api.github.com/users/bpoplauschi/followers","following_url":"https://api.github.com/users/bpoplauschi/following{/other_user}","gists_url":"https://api.github.com/users/bpoplauschi/gists{/gist_id}","starred_url":"https://api.github.com/users/bpoplauschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpoplauschi/subscriptions","organizations_url":"https://api.github.com/users/bpoplauschi/orgs","repos_url":"https://api.github.com/users/bpoplauschi/repos","events_url":"https://api.github.com/users/bpoplauschi/events{/privacy}","received_events_url":"https://api.github.com/users/bpoplauschi/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":46,"state":"open","created_at":"2017-01-30T06:11:40Z","updated_at":"2017-07-31T12:27:01Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2017-06-29T07:07:59Z","updated_at":"2017-07-31T12:27:01Z","closed_at":"2017-07-31T12:27:01Z","body":"### New Issue Checklist\r\n\r\n* [x] I have read and understood the [CONTRIBUTING guide](https://github.com/rs/SDWebImage/blob/master/.github/CONTRIBUTING.md)\r\n* [x] I have read the [Documentation](http://cocoadocs.org/docsets/SDWebImage/)\r\n* [x] I have searched for a similar issue in the [project](https://github.com/rs/SDWebImage/issues) and found none\r\n\r\n### Issue Info\r\n\r\n Info                    | Value                               |\r\n-------------------------|-------------------------------------|\r\n Platform Name           | ios\r\n Platform Version        | 7.0-10.0\r\n SDWebImage Version      | 4.0\r\n Integration Method      | cocoapods\r\n Xcode Version           | Xcode 8.3.2\r\n Repro rate              | all the time (100%)\r\n Repro with our demo prj | YES, the demo Image-5 renders wrong.\r\n Demo project link       | https://github.com/dreampiggy/AnimatedWebPDemo\r\n\r\n### Issue Description and Steps\r\n\r\nDescription:\r\n\r\nSDWebImage 4.0 add support to [animated WebP](https://developers.google.com/speed/webp/faq#why_should_i_use_animated_webp). But when downloading and showing some of animated WebP using SDWebImage API(eg. `sd_setImageWithURL:`) to `UIImageView` or `FLAnimatedImageView` instance, the imageview can't render correctly.\r\n\r\nComparing to another animated WebP library ([YYImage](https://github.com/ibireme/YYImage)), it seems that the decoder for WebP to get per frame images works wrong.\r\n\r\nAlso, current implementation does not support WebP [disposal method](https://developers.google.com/speed/webp/docs/riff_container#animation),  which cause many animated WebP images look strange. And due to UIImage's API, the `duration` parameter just use the average duration for each frame, which is different from the animated WebP standard which allows set different duration per frame and also cause some images look strange.\r\n\r\nFor more detail and intuitive effect, you can go to the [demo project]( https://github.com/dreampiggy/AnimatedWebPDemo) to build and run.\r\n\r\nStep:\r\n1. find some animated WebP images' URLs.\r\n2. create an `FLAnimatedImageView` or `UIImageView` instance and use `sd_setImageWithURL:` API to set image.\r\n3. when showing animated WebP images, the images not showing correctly(looks strange).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/comments/319052742","html_url":"https://github.com/rs/SDWebImage/issues/1951#issuecomment-319052742","issue_url":"https://api.github.com/repos/rs/SDWebImage/issues/1951","id":319052742,"user":{"login":"bpoplauschi","id":154913,"avatar_url":"https://avatars2.githubusercontent.com/u/154913?v=4","gravatar_id":"","url":"https://api.github.com/users/bpoplauschi","html_url":"https://github.com/bpoplauschi","followers_url":"https://api.github.com/users/bpoplauschi/followers","following_url":"https://api.github.com/users/bpoplauschi/following{/other_user}","gists_url":"https://api.github.com/users/bpoplauschi/gists{/gist_id}","starred_url":"https://api.github.com/users/bpoplauschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpoplauschi/subscriptions","organizations_url":"https://api.github.com/users/bpoplauschi/orgs","repos_url":"https://api.github.com/users/bpoplauschi/repos","events_url":"https://api.github.com/users/bpoplauschi/events{/privacy}","received_events_url":"https://api.github.com/users/bpoplauschi/received_events","type":"User","site_admin":false},"created_at":"2017-07-31T12:27:00Z","updated_at":"2017-07-31T12:27:00Z","body":"Fixed by #1952 "}}
{"actor":{"display_login":"bpoplauschi"}}