{"action":"created","issue":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/321","repository_url":"https://api.github.com/repos/rs/SDWebImage","labels_url":"https://api.github.com/repos/rs/SDWebImage/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/rs/SDWebImage/issues/321/comments","events_url":"https://api.github.com/repos/rs/SDWebImage/issues/321/events","html_url":"https://github.com/rs/SDWebImage/issues/321","id":11856932,"number":321,"title":"GIF support","user":{"login":"lbrndnr","id":762049,"avatar_url":"https://avatars.githubusercontent.com/u/762049?v=3","gravatar_id":"","url":"https://api.github.com/users/lbrndnr","html_url":"https://github.com/lbrndnr","followers_url":"https://api.github.com/users/lbrndnr/followers","following_url":"https://api.github.com/users/lbrndnr/following{/other_user}","gists_url":"https://api.github.com/users/lbrndnr/gists{/gist_id}","starred_url":"https://api.github.com/users/lbrndnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbrndnr/subscriptions","organizations_url":"https://api.github.com/users/lbrndnr/orgs","repos_url":"https://api.github.com/users/lbrndnr/repos","events_url":"https://api.github.com/users/lbrndnr/events{/privacy}","received_events_url":"https://api.github.com/users/lbrndnr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rs/SDWebImage/labels/feature","name":"feature","color":"0f26f7"},{"url":"https://api.github.com/repos/rs/SDWebImage/labels/GIF","name":"GIF","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rs/SDWebImage/milestones/3","html_url":"https://github.com/rs/SDWebImage/milestones/4.0.0","labels_url":"https://api.github.com/repos/rs/SDWebImage/milestones/3/labels","id":696126,"number":3,"title":"4.0.0","description":"","creator":{"login":"bpoplauschi","id":154913,"avatar_url":"https://avatars.githubusercontent.com/u/154913?v=3","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":95,"closed_issues":46,"state":"open","created_at":"2014-06-19T19:21:07Z","updated_at":"2016-06-29T11:29:35Z","due_on":null,"closed_at":null},"comments":26,"created_at":"2013-03-10T20:08:15Z","updated_at":"2016-07-20T14:45:34Z","closed_at":"2013-05-08T14:13:25Z","body":"SDWebImage doesn't take the GIF format in account. Additional frames are perpetually lost.\r\nI've written a [small category](https://github.com/larcus94/LBGIFImage) that makes an UIImage out of GIF data. I'd totally add this to your lib by myself but I don't really have time in next couple weeks nor do I feel like breaking half of your code due to the fact that I don't really know SDWebImage too well.\r\n\r\nI'd really love to see SDWebImage having GIF support as it may be useful for other folks here too. Looking forward to hearing from you,\r\nLaurin"},"comment":{"url":"https://api.github.com/repos/rs/SDWebImage/issues/comments/233971498","html_url":"https://github.com/rs/SDWebImage/issues/321#issuecomment-233971498","issue_url":"https://api.github.com/repos/rs/SDWebImage/issues/321","id":233971498,"user":{"login":"josepaul28","id":4372141,"avatar_url":"https://avatars.githubusercontent.com/u/4372141?v=3","gravatar_id":"","url":"https://api.github.com/users/josepaul28","html_url":"https://github.com/josepaul28","followers_url":"https://api.github.com/users/josepaul28/followers","following_url":"https://api.github.com/users/josepaul28/following{/other_user}","gists_url":"https://api.github.com/users/josepaul28/gists{/gist_id}","starred_url":"https://api.github.com/users/josepaul28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josepaul28/subscriptions","organizations_url":"https://api.github.com/users/josepaul28/orgs","repos_url":"https://api.github.com/users/josepaul28/repos","events_url":"https://api.github.com/users/josepaul28/events{/privacy}","received_events_url":"https://api.github.com/users/josepaul28/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T14:45:34Z","updated_at":"2016-07-20T14:45:34Z","body":"You can do something like this:\r\n\r\n`\r\nvar placeholderImage: UIImage? = nil\r\n\r\n//viewDidLoad\r\nif let resourceUrl = NSBundle.mainBundle().URLForResource(\"loader-64px\", withExtension: \"gif\") {\r\n            if let path = resourceUrl.path where NSFileManager.defaultManager().fileExistsAtPath(path) {\r\n                let placeholderImageView: UIImageView = UIImageView()\r\n                placeholderImageView.sd_setImageWithURL(resourceUrl)\r\n                if let arrayImages = placeholderImageView.image?.images where arrayImages.count > 0 {\r\n                    self.placeholderImage = UIImage.animatedImageWithImages(arrayImages, duration: 0.2)\r\n                }\r\n            }\r\n        }\r\n\r\n//cellForItemAtIndexPath\r\ncell.productImageView.sd_setImageWithURL(NSURL(string: image), placeholderImage: self.placeholderImage)\r\n`\r\n\r\n"}}
{"actor":{"display_login":"josepaul28"}}