{"action":"created","issue":{"url":"https://api.github.com/repos/zhangao0086/DKImagePickerController/issues/93","repository_url":"https://api.github.com/repos/zhangao0086/DKImagePickerController","labels_url":"https://api.github.com/repos/zhangao0086/DKImagePickerController/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/zhangao0086/DKImagePickerController/issues/93/comments","events_url":"https://api.github.com/repos/zhangao0086/DKImagePickerController/issues/93/events","html_url":"https://github.com/zhangao0086/DKImagePickerController/issues/93","id":142276384,"number":93,"title":"keep the ratio when using fetchImageWithSize","user":{"login":"zhiyanshao","id":6019211,"avatar_url":"https://avatars.githubusercontent.com/u/6019211?v=3","gravatar_id":"","url":"https://api.github.com/users/zhiyanshao","html_url":"https://github.com/zhiyanshao","followers_url":"https://api.github.com/users/zhiyanshao/followers","following_url":"https://api.github.com/users/zhiyanshao/following{/other_user}","gists_url":"https://api.github.com/users/zhiyanshao/gists{/gist_id}","starred_url":"https://api.github.com/users/zhiyanshao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhiyanshao/subscriptions","organizations_url":"https://api.github.com/users/zhiyanshao/orgs","repos_url":"https://api.github.com/users/zhiyanshao/repos","events_url":"https://api.github.com/users/zhiyanshao/events{/privacy}","received_events_url":"https://api.github.com/users/zhiyanshao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T07:36:22Z","updated_at":"2016-03-23T09:51:16Z","closed_at":null,"body":"Is there an option to detect or keep the ratio when using this size one? In that case, the size specified would be the max height and the max width for the compressed image.  \r\n\r\nFor example, if I specify the size to be CGSize(width: 1200, height: 1200), the image will always be cut into 1200 * 1200 square. If the original ratio is 4:3 and 2000:1500, I'd like to have the UIImage to be 1200 * 900. Thanks!"},"comment":{"url":"https://api.github.com/repos/zhangao0086/DKImagePickerController/issues/comments/200273067","html_url":"https://github.com/zhangao0086/DKImagePickerController/issues/93#issuecomment-200273067","issue_url":"https://api.github.com/repos/zhangao0086/DKImagePickerController/issues/93","id":200273067,"user":{"login":"aldolazuardi","id":9720223,"avatar_url":"https://avatars.githubusercontent.com/u/9720223?v=3","gravatar_id":"","url":"https://api.github.com/users/aldolazuardi","html_url":"https://github.com/aldolazuardi","followers_url":"https://api.github.com/users/aldolazuardi/followers","following_url":"https://api.github.com/users/aldolazuardi/following{/other_user}","gists_url":"https://api.github.com/users/aldolazuardi/gists{/gist_id}","starred_url":"https://api.github.com/users/aldolazuardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldolazuardi/subscriptions","organizations_url":"https://api.github.com/users/aldolazuardi/orgs","repos_url":"https://api.github.com/users/aldolazuardi/repos","events_url":"https://api.github.com/users/aldolazuardi/events{/privacy}","received_events_url":"https://api.github.com/users/aldolazuardi/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T09:51:16Z","updated_at":"2016-03-23T09:51:16Z","body":"@zhangao0086 First of all i want to say thank you for such a great library! but i want to ask same question, how to keep the ratio with fetchImageWithSize? when i use fetchOriginalImage app would crash but if im using fetchOriginalImage its too small. "}}