{"action":"created","issue":{"url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/333","repository_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin","labels_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/333/comments","events_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/333/events","html_url":"https://github.com/jamesmontemagno/MediaPlugin/issues/333","id":254003839,"number":333,"title":"Photos Captured in Portrait Mode Are Showing in Landscape","user":{"login":"AtlasAF01","id":25185688,"avatar_url":"https://avatars1.githubusercontent.com/u/25185688?v=4","gravatar_id":"","url":"https://api.github.com/users/AtlasAF01","html_url":"https://github.com/AtlasAF01","followers_url":"https://api.github.com/users/AtlasAF01/followers","following_url":"https://api.github.com/users/AtlasAF01/following{/other_user}","gists_url":"https://api.github.com/users/AtlasAF01/gists{/gist_id}","starred_url":"https://api.github.com/users/AtlasAF01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtlasAF01/subscriptions","organizations_url":"https://api.github.com/users/AtlasAF01/orgs","repos_url":"https://api.github.com/users/AtlasAF01/repos","events_url":"https://api.github.com/users/AtlasAF01/events{/privacy}","received_events_url":"https://api.github.com/users/AtlasAF01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2017-08-30T13:43:05Z","updated_at":"2017-10-20T13:23:40Z","closed_at":"2017-08-31T00:38:28Z","author_association":"NONE","body":"(Related to Issue #285 )\r\n\r\nNot to dredge up a closed issue but we are seeing the exact same behavior as referenced in #285 with the media plugin in our forms app.  We noticed that the image is displayed correctly on the screen most of the time but if you convert to a Base64String and use something like https://codebeautify.org/base64-to-image-converter to view image, the image is displayed in landscape instead of portrait.\r\n\r\nWe have two ways of storing photos.  The first captures and sends the converted string to an api for storage on a DB server.  The second is an offline storage mode that saves the encrypted string in a SQLLite DB on the device.  \r\n\r\nOnce the image is sent to the API, for whatever reason, all photos that were captured as portrait display in landscape mode.  However, decrypting and converting back to a stream from the local DB results in a correctly displayed image.\r\n\r\nWe cannot figure out why but it seems like setting the source of an image to a stream will result in a correctly oriented image most of the time.  When we look at the image on the remote  system however, it is always landscape."},"comment":{"url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/comments/338204865","html_url":"https://github.com/jamesmontemagno/MediaPlugin/issues/333#issuecomment-338204865","issue_url":"https://api.github.com/repos/jamesmontemagno/MediaPlugin/issues/333","id":338204865,"user":{"login":"tacoman667","id":414641,"avatar_url":"https://avatars0.githubusercontent.com/u/414641?v=4","gravatar_id":"","url":"https://api.github.com/users/tacoman667","html_url":"https://github.com/tacoman667","followers_url":"https://api.github.com/users/tacoman667/followers","following_url":"https://api.github.com/users/tacoman667/following{/other_user}","gists_url":"https://api.github.com/users/tacoman667/gists{/gist_id}","starred_url":"https://api.github.com/users/tacoman667/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacoman667/subscriptions","organizations_url":"https://api.github.com/users/tacoman667/orgs","repos_url":"https://api.github.com/users/tacoman667/repos","events_url":"https://api.github.com/users/tacoman667/events{/privacy}","received_events_url":"https://api.github.com/users/tacoman667/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T13:23:40Z","updated_at":"2017-10-20T13:23:40Z","author_association":"CONTRIBUTOR","body":"@jamesmontemagno Was it not saving before? At first glance, it looks like it was. However, it will save only if the images were taken with this plugin right?\r\n\r\nAnd this really doesn't affect the situation where we need to push the image to an external source? Probably because the external source is probably not an Apple device and thus may not have the ability to save such metadata, thus losing the orientation data?"}}
{"actor":{"display_login":"tacoman667"}}