{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-camera/issues/98","repository_url":"https://api.github.com/repos/NativeScript/nativescript-camera","labels_url":"https://api.github.com/repos/NativeScript/nativescript-camera/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-camera/issues/98/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-camera/issues/98/events","html_url":"https://github.com/NativeScript/nativescript-camera/issues/98","id":307674358,"node_id":"MDU6SXNzdWUzMDc2NzQzNTg=","number":98,"title":"KeepAspectRatio, sizes and orientation","user":{"login":"carrbrpoa","id":10212618,"node_id":"MDQ6VXNlcjEwMjEyNjE4","avatar_url":"https://avatars2.githubusercontent.com/u/10212618?v=4","gravatar_id":"","url":"https://api.github.com/users/carrbrpoa","html_url":"https://github.com/carrbrpoa","followers_url":"https://api.github.com/users/carrbrpoa/followers","following_url":"https://api.github.com/users/carrbrpoa/following{/other_user}","gists_url":"https://api.github.com/users/carrbrpoa/gists{/gist_id}","starred_url":"https://api.github.com/users/carrbrpoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carrbrpoa/subscriptions","organizations_url":"https://api.github.com/users/carrbrpoa/orgs","repos_url":"https://api.github.com/users/carrbrpoa/repos","events_url":"https://api.github.com/users/carrbrpoa/events{/privacy}","received_events_url":"https://api.github.com/users/carrbrpoa/received_events","type":"User","site_admin":false},"labels":[{"id":628015288,"node_id":"MDU6TGFiZWw2MjgwMTUyODg=","url":"https://api.github.com/repos/NativeScript/nativescript-camera/labels/feature","name":"feature","color":"0B61A4","default":false},{"id":454853144,"node_id":"MDU6TGFiZWw0NTQ4NTMxNDQ=","url":"https://api.github.com/repos/NativeScript/nativescript-camera/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true},{"id":1120833361,"node_id":"MDU6TGFiZWwxMTIwODMzMzYx","url":"https://api.github.com/repos/NativeScript/nativescript-camera/labels/ready%20for%20release","name":"ready for release","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"elena-p","id":5754435,"node_id":"MDQ6VXNlcjU3NTQ0MzU=","avatar_url":"https://avatars0.githubusercontent.com/u/5754435?v=4","gravatar_id":"","url":"https://api.github.com/users/elena-p","html_url":"https://github.com/elena-p","followers_url":"https://api.github.com/users/elena-p/followers","following_url":"https://api.github.com/users/elena-p/following{/other_user}","gists_url":"https://api.github.com/users/elena-p/gists{/gist_id}","starred_url":"https://api.github.com/users/elena-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elena-p/subscriptions","organizations_url":"https://api.github.com/users/elena-p/orgs","repos_url":"https://api.github.com/users/elena-p/repos","events_url":"https://api.github.com/users/elena-p/events{/privacy}","received_events_url":"https://api.github.com/users/elena-p/received_events","type":"User","site_admin":false},"assignees":[{"login":"elena-p","id":5754435,"node_id":"MDQ6VXNlcjU3NTQ0MzU=","avatar_url":"https://avatars0.githubusercontent.com/u/5754435?v=4","gravatar_id":"","url":"https://api.github.com/users/elena-p","html_url":"https://github.com/elena-p","followers_url":"https://api.github.com/users/elena-p/followers","following_url":"https://api.github.com/users/elena-p/following{/other_user}","gists_url":"https://api.github.com/users/elena-p/gists{/gist_id}","starred_url":"https://api.github.com/users/elena-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elena-p/subscriptions","organizations_url":"https://api.github.com/users/elena-p/orgs","repos_url":"https://api.github.com/users/elena-p/repos","events_url":"https://api.github.com/users/elena-p/events{/privacy}","received_events_url":"https://api.github.com/users/elena-p/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-03-22T14:45:08Z","updated_at":"2018-11-09T11:52:49Z","closed_at":"2018-11-09T11:52:49Z","author_association":"NONE","body":"Hello,\r\n\r\nAs and enhancement, is it possible that `width` and `height` could be treated conditionally when `KeepAspectRatio` is set to `true`, depending on camera orientation when photo is taken?\r\n\r\nMotive: let's say I have the following options setted:\r\n\r\n```\r\ntakePicture({\r\n\twidth: 640,\r\n\theight: 480,\r\n\tkeepAspectRatio: true,\r\n...\r\n```\r\n\r\nAs a result, I see that landscape/horizontal photo I take, is like 576x324 (_Ok_ case). \r\n\r\nAlso see that portrait/vertical photo is 648x1152 (because of the \"rule\" that says that only one of width/height could be respected with `keepAspectRatio: true`), but actually, in this case, would be better for me to specify that when taking portrait photo, I would like to have maybe `width: 480` and `height: 640`.\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-camera/issues/comments/437337872","html_url":"https://github.com/NativeScript/nativescript-camera/issues/98#issuecomment-437337872","issue_url":"https://api.github.com/repos/NativeScript/nativescript-camera/issues/98","id":437337872,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzMzNzg3Mg==","user":{"login":"zbranzov","id":2787764,"node_id":"MDQ6VXNlcjI3ODc3NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2787764?v=4","gravatar_id":"","url":"https://api.github.com/users/zbranzov","html_url":"https://github.com/zbranzov","followers_url":"https://api.github.com/users/zbranzov/followers","following_url":"https://api.github.com/users/zbranzov/following{/other_user}","gists_url":"https://api.github.com/users/zbranzov/gists{/gist_id}","starred_url":"https://api.github.com/users/zbranzov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbranzov/subscriptions","organizations_url":"https://api.github.com/users/zbranzov/orgs","repos_url":"https://api.github.com/users/zbranzov/repos","events_url":"https://api.github.com/users/zbranzov/events{/privacy}","received_events_url":"https://api.github.com/users/zbranzov/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T11:52:49Z","updated_at":"2018-11-09T11:52:49Z","author_association":"CONTRIBUTOR","body":"The feature is released in nativescript-camera@4.1.0. Enjoy!"}}
{"actor":{"display_login":"zbranzov"}}