7

Is there a general way to do this?

To add more context, it seems the camera plugin takes into account the device orientation when capturing image from the camera. Can we control it so that no matter what the orientation is, the result is still the same?

plugin: camera 0.4.0+3

Willy
  • 859
  • 8
  • 17
  • 1
    Have you checked [this](https://stackoverflow.com/questions/10660598/android-camera-preview-orientation-in-portrait-mode) thread? – Jaydroid Mar 05 '19 at 05:01
  • @Jaydroid I don't think you can modify the manifest as it's an external "flutter" library. – boring91 Apr 05 '19 at 22:39

1 Answers1

2

For those who're struggling with this problem, checking your device orientation when taking photos and its resulting exif data should help. Try these libraries:

native_device_orientation

exif

flutter_exif_rotation

Willy
  • 859
  • 8
  • 17
  • Please elaborate – Elia Weiss Dec 21 '19 at 23:04
  • Image files captured by most modern devices have EXIF data embedded, which is a set of metadata like orientation/rotation. Image viewers may or may not take this data into account when showing the image. More [info](https://www.impulseadventure.com/photo/exif-orientation.html). – Willy Dec 22 '19 at 04:47