{"action":"created","issue":{"url":"https://api.github.com/repos/onevcat/Kingfisher/issues/544","repository_url":"https://api.github.com/repos/onevcat/Kingfisher","labels_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/544/comments","events_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/544/events","html_url":"https://github.com/onevcat/Kingfisher/issues/544","id":196430920,"number":544,"title":"Weird blank space appearing before and after image","user":{"login":"tirrorex","id":8297740,"avatar_url":"https://avatars.githubusercontent.com/u/8297740?v=3","gravatar_id":"","url":"https://api.github.com/users/tirrorex","html_url":"https://github.com/tirrorex","followers_url":"https://api.github.com/users/tirrorex/followers","following_url":"https://api.github.com/users/tirrorex/following{/other_user}","gists_url":"https://api.github.com/users/tirrorex/gists{/gist_id}","starred_url":"https://api.github.com/users/tirrorex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tirrorex/subscriptions","organizations_url":"https://api.github.com/users/tirrorex/orgs","repos_url":"https://api.github.com/users/tirrorex/repos","events_url":"https://api.github.com/users/tirrorex/events{/privacy}","received_events_url":"https://api.github.com/users/tirrorex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-19T14:47:06Z","updated_at":"2016-12-20T09:13:55Z","closed_at":null,"body":"Hello, i'm using this basic code            \r\n      imageView.kf_setImageWithURL(NSURL(string: imageURL)!)\r\n\r\nto load an image on my detail view.\r\nIf i load an url from facebook (which is a thumbnail) everything is fine but if i load an image from twitter (large image) i will have big white spaces before AND after the image (meaning on top and beneath).\r\nMy UIImageview is in a content view which is in turn in a scrollview (to be able to scroll the view if the text after the image is too long to fit in the screen).\r\nThe image is set to be equal width with the content view and is pinned to the top, leading and trailing of the content view with a horizontal centering (bottom is pinned to the textview beneath)\r\nThe aspect mode is aspect to fit.\r\n\r\nYou can see both images (which are basically the same) at these urls : \r\nhttps://scontent.xx.fbcdn.net/v/t1.0-9/p720x720/15589722_1474708575902936_5199321467736942706_n.jpg?oh=5a70e530c54c0f570d9f049b07934867&oe=58E3F8D6\r\n\r\nhttps://pbs.twimg.com/media/Cztj1ENXUAAW-Wo.jpg:large\r\n\r\nExpected behaviour : \r\nEdges of the images on the edges of the screen, height being redimmensionned to fit the screen.\r\n\r\nAny leads on this ?"},"comment":{"url":"https://api.github.com/repos/onevcat/Kingfisher/issues/comments/268192777","html_url":"https://github.com/onevcat/Kingfisher/issues/544#issuecomment-268192777","issue_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/544","id":268192777,"user":{"login":"onevcat","id":1019875,"avatar_url":"https://avatars.githubusercontent.com/u/1019875?v=3","gravatar_id":"","url":"https://api.github.com/users/onevcat","html_url":"https://github.com/onevcat","followers_url":"https://api.github.com/users/onevcat/followers","following_url":"https://api.github.com/users/onevcat/following{/other_user}","gists_url":"https://api.github.com/users/onevcat/gists{/gist_id}","starred_url":"https://api.github.com/users/onevcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onevcat/subscriptions","organizations_url":"https://api.github.com/users/onevcat/orgs","repos_url":"https://api.github.com/users/onevcat/repos","events_url":"https://api.github.com/users/onevcat/events{/privacy}","received_events_url":"https://api.github.com/users/onevcat/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T09:13:55Z","updated_at":"2016-12-20T09:13:55Z","body":"So is it due to your aspect to fit mode?\r\n\r\nKingfisher should do nothing on the content mode, but just setting the image property of an image view. So I guess it's more likely a problem of your image view content mode."}}
{"actor":{"display_login":"onevcat"}}