{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1153","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1153/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1153/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1153/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1153","id":118236226,"number":1153,"title":"Resize image to specific height using using aspect ratio","user":{"login":"cameronjroe","id":1614348,"avatar_url":"https://avatars.githubusercontent.com/u/1614348?v=3","gravatar_id":"","url":"https://api.github.com/users/cameronjroe","html_url":"https://github.com/cameronjroe","followers_url":"https://api.github.com/users/cameronjroe/followers","following_url":"https://api.github.com/users/cameronjroe/following{/other_user}","gists_url":"https://api.github.com/users/cameronjroe/gists{/gist_id}","starred_url":"https://api.github.com/users/cameronjroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameronjroe/subscriptions","organizations_url":"https://api.github.com/users/cameronjroe/orgs","repos_url":"https://api.github.com/users/cameronjroe/repos","events_url":"https://api.github.com/users/cameronjroe/events{/privacy}","received_events_url":"https://api.github.com/users/cameronjroe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-22T03:24:59Z","updated_at":"2015-11-22T08:35:27Z","closed_at":null,"body":"Is there a way to specific a resize without using a specific width? If I specific a `{width:150, height:150}` the images may actually only use 112 in height while the the width is matched to 150. This causes an issue when trying to only meet a 150 required height, yet one cannot simply specify `{height:150}` to scale an image proportionally using it's existing aspect ratio. Any ideas on how to specify the height to a specific value?"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/158737244","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1153#issuecomment-158737244","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1153","id":158737244,"user":{"login":"danialfarid","id":1676054,"avatar_url":"https://avatars.githubusercontent.com/u/1676054?v=3","gravatar_id":"","url":"https://api.github.com/users/danialfarid","html_url":"https://github.com/danialfarid","followers_url":"https://api.github.com/users/danialfarid/followers","following_url":"https://api.github.com/users/danialfarid/following{/other_user}","gists_url":"https://api.github.com/users/danialfarid/gists{/gist_id}","starred_url":"https://api.github.com/users/danialfarid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danialfarid/subscriptions","organizations_url":"https://api.github.com/users/danialfarid/orgs","repos_url":"https://api.github.com/users/danialfarid/repos","events_url":"https://api.github.com/users/danialfarid/events{/privacy}","received_events_url":"https://api.github.com/users/danialfarid/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T08:35:27Z","updated_at":"2015-11-22T08:35:27Z","body":"So you want both of them be 150px by adding empty borders on top and bottom of the image?\r\nCan you just center that image wherever you want to use it on the html page?"}}