{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/10533","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/10533/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/10533/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/10533/events","html_url":"https://github.com/flutter/flutter/issues/10533","id":233982607,"number":10533,"title":"Honor orientation EXIF flag for images on Android","user":{"login":"pcomans","id":311774,"avatar_url":"https://avatars3.githubusercontent.com/u/311774?v=4","gravatar_id":"","url":"https://api.github.com/users/pcomans","html_url":"https://github.com/pcomans","followers_url":"https://api.github.com/users/pcomans/followers","following_url":"https://api.github.com/users/pcomans/following{/other_user}","gists_url":"https://api.github.com/users/pcomans/gists{/gist_id}","starred_url":"https://api.github.com/users/pcomans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcomans/subscriptions","organizations_url":"https://api.github.com/users/pcomans/orgs","repos_url":"https://api.github.com/users/pcomans/repos","events_url":"https://api.github.com/users/pcomans/events{/privacy}","received_events_url":"https://api.github.com/users/pcomans/received_events","type":"User","site_admin":false},"labels":[{"id":284437560,"url":"https://api.github.com/repos/flutter/flutter/labels/framework","name":"framework","color":"207de5","default":false},{"id":295704306,"url":"https://api.github.com/repos/flutter/flutter/labels/severe:%20API%20break","name":"severe: API break","color":"900000","default":false},{"id":283479900,"url":"https://api.github.com/repos/flutter/flutter/labels/%E2%96%A3%20platform-android","name":"▣ platform-android","color":"003570","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/flutter/flutter/milestones/21","html_url":"https://github.com/flutter/flutter/milestone/21","labels_url":"https://api.github.com/repos/flutter/flutter/milestones/21/labels","id":2005337,"number":21,"title":"3: Current Milestone","description":"These are tasks we want to complete to move from \"alpha\" to \"beta\". This includes being feature complete and ready for people to ship applications.\r\n\r\nThe date on this milestone is utterly arbitrary and just intended to sort the milestone appropriately.","creator":{"login":"Hixie","id":551196,"avatar_url":"https://avatars2.githubusercontent.com/u/551196?v=4","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":749,"state":"closed","created_at":"2016-09-14T22:22:18Z","updated_at":"2018-04-17T23:56:21Z","due_on":"2018-12-31T08:00:00Z","closed_at":"2018-04-17T23:56:21Z"},"comments":7,"created_at":"2017-06-06T18:28:06Z","updated_at":"2018-05-23T18:45:59Z","closed_at":"2018-04-06T20:10:22Z","author_association":"NONE","body":"## Steps to Reproduce\r\n\r\nCreate an Image widget with a source image that has the orientation flag in its EXIF parameters set.\r\nExample:\r\n```\r\nnew Image.network(\r\n              \"https://www.dropbox.com/s/owrunurvdq20r25/20170606_111821_HDR.jpg?dl=1\",\r\n              fit: BoxFit.scaleDown\r\n          )\r\n```\r\nWhat should happen: The image should appear in portrait, since the orientation is Orientation: 6 (Rotated 90° CCW).\r\nWhat happens instead: The image appears in landscape, as if there was no orientation flag.\r\n## Logs\r\nNone\r\n\r\n## Flutter Doctor\r\n[✓] Flutter (on Mac OS X 10.12.5 16F73, channel alpha)\r\n    • Flutter at /Users/philipp/code/flutter\r\n    • Framework revision 973304d5fb (3 weeks ago), 2017-05-18 17:31:57 -0700\r\n    • Engine revision f99d3ef108\r\n    • Tools Dart version 1.23.0-dev.11.11\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)\r\n    • Android SDK at /Users/philipp/Library/Android/sdk\r\n    • Platform android-25, build-tools 25.0.3\r\n    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java\r\n    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)\r\n\r\n[-] iOS toolchain - develop for iOS devices (Xcode 8.3.3)\r\n    • Xcode at /Applications/Xcode.app/Contents/Developer\r\n    • Xcode 8.3.3, Build version 8E3004b\r\n    • ios-deploy 1.9.1\r\n    ✗ CocoaPods installed but not initialized.\r\n        CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.\r\n        Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.\r\n        For more info, see https://flutter.io/platform-plugins\r\n      To initialize CocoaPods, run:\r\n        pod setup\r\n      once to finalize CocoaPods' installation.\r\n\r\n[✓] Android Studio (version 2.3)\r\n    • Android Studio at /Applications/Android Studio.app/Contents\r\n    • Gradle version 3.2\r\n    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)\r\n\r\n[✓] IntelliJ IDEA Community Edition (version 2017.1.3)\r\n    • Dart plugin version 171.4424.63\r\n    • Flutter plugin version 14.0\r\n\r\n[✓] Connected devices\r\n    • LGUS991   • LGUS99168d23625                      • android-arm • Android 6.0 (API 23)\r\n    • iPhone SE • B42ADC67-E52E-43A9-A3B1-B5AC81D7E2F9 • ios         • iOS 10.3 (simulator)"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/391456095","html_url":"https://github.com/flutter/flutter/issues/10533#issuecomment-391456095","issue_url":"https://api.github.com/repos/flutter/flutter/issues/10533","id":391456095,"user":{"login":"MichaelSowah","id":24699905,"avatar_url":"https://avatars1.githubusercontent.com/u/24699905?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelSowah","html_url":"https://github.com/MichaelSowah","followers_url":"https://api.github.com/users/MichaelSowah/followers","following_url":"https://api.github.com/users/MichaelSowah/following{/other_user}","gists_url":"https://api.github.com/users/MichaelSowah/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelSowah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelSowah/subscriptions","organizations_url":"https://api.github.com/users/MichaelSowah/orgs","repos_url":"https://api.github.com/users/MichaelSowah/repos","events_url":"https://api.github.com/users/MichaelSowah/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelSowah/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T18:45:59Z","updated_at":"2018-05-23T18:45:59Z","author_association":"NONE","body":"I am using the camera plugin and after taking the picture, I convert to base64 and send to my servers but when previewed on my server the image on the server comes 90 degrees clockwise rotated, so instead of portrait image of my face I get landscape image of my face. how do I fix this? \r\n\r\nI just noticed the exif data is lost before getting to the server which is causing me problems now and it has practically become a block for my project. is there any workaround to fixing this.\r\n\r\nthis is what I do before sending the image to my server\r\n\r\n`imageFile = new File(widget.previewImagePath);\r\n    imageBytes = imageFile.readAsBytesSync();\r\n    visitorImage = base64.encode(imageBytes);`"}}
{"actor":{"display_login":"MichaelSowah"}}