{"action":"created","issue":{"url":"https://api.github.com/repos/onevcat/Kingfisher/issues/880","repository_url":"https://api.github.com/repos/onevcat/Kingfisher","labels_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/880/labels{/name}","comments_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/880/comments","events_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/880/events","html_url":"https://github.com/onevcat/Kingfisher/issues/880","id":306853487,"node_id":"MDU6SXNzdWUzMDY4NTM0ODc=","number":880,"title":"Can't play GIF with .backgroundDecode option","user":{"login":"KimiChiu","id":2577190,"node_id":"MDQ6VXNlcjI1NzcxOTA=","avatar_url":"https://avatars2.githubusercontent.com/u/2577190?v=4","gravatar_id":"","url":"https://api.github.com/users/KimiChiu","html_url":"https://github.com/KimiChiu","followers_url":"https://api.github.com/users/KimiChiu/followers","following_url":"https://api.github.com/users/KimiChiu/following{/other_user}","gists_url":"https://api.github.com/users/KimiChiu/gists{/gist_id}","starred_url":"https://api.github.com/users/KimiChiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimiChiu/subscriptions","organizations_url":"https://api.github.com/users/KimiChiu/orgs","repos_url":"https://api.github.com/users/KimiChiu/repos","events_url":"https://api.github.com/users/KimiChiu/events{/privacy}","received_events_url":"https://api.github.com/users/KimiChiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-20T12:56:34Z","updated_at":"2019-05-15T09:08:57Z","closed_at":null,"author_association":"NONE","body":"Here's how I use it.\r\n\r\n    previewImage.clipsToBounds = true\r\n    previewImage.kf.indicatorType = .custom(indicator: indicator)\r\n    previewImage.kf.setImage(with: url, options: [.transition(.fade(0.2)), .backgroundDecode], progressBlock: {\r\n        receivedSize, totalSize in\r\n    \r\n        // from cache\r\n        if totalSize < 0 {\r\n            indicator.level = 10000.0\r\n        }\r\n        else{\r\n            indicator.level = CGFloat( (Float(receivedSize) / Float(totalSize)) * 10000.0 )\r\n        }\r\n    })\r\n\r\nThe GIF is played well without .backgroundDecode."},"comment":{"url":"https://api.github.com/repos/onevcat/Kingfisher/issues/comments/492572342","html_url":"https://github.com/onevcat/Kingfisher/issues/880#issuecomment-492572342","issue_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/880","id":492572342,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MjU3MjM0Mg==","user":{"login":"xspyhack","id":5518285,"node_id":"MDQ6VXNlcjU1MTgyODU=","avatar_url":"https://avatars3.githubusercontent.com/u/5518285?v=4","gravatar_id":"","url":"https://api.github.com/users/xspyhack","html_url":"https://github.com/xspyhack","followers_url":"https://api.github.com/users/xspyhack/followers","following_url":"https://api.github.com/users/xspyhack/following{/other_user}","gists_url":"https://api.github.com/users/xspyhack/gists{/gist_id}","starred_url":"https://api.github.com/users/xspyhack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xspyhack/subscriptions","organizations_url":"https://api.github.com/users/xspyhack/orgs","repos_url":"https://api.github.com/users/xspyhack/repos","events_url":"https://api.github.com/users/xspyhack/events{/privacy}","received_events_url":"https://api.github.com/users/xspyhack/received_events","type":"User","site_admin":false},"created_at":"2019-05-15T09:08:57Z","updated_at":"2019-05-15T09:08:57Z","author_association":"CONTRIBUTOR","body":"Normally I thinks we don't need to decode GIF with .backgroundDecode option when you use `AnimatedImageView` to display. `AnimatedImageView` will preload and resize(if `needsPrescaling` is true, default is true) frame in a serial queue, it will decode the frame into bitmap while resizing."}}
{"actor":{"display_login":"xspyhack"}}