sangcomz / FishBun

:blowfish:FishBun is Image Picker for android.
Apache License 2.0
671 stars 144 forks source link

[BUG] Pixel XL - Taking a photo in Fishbun returns wrong orientation. #199

Open acherkashyn opened 4 years ago

acherkashyn commented 4 years ago

Describe the bug This bug happens on my Pixel XL, but not on Pixel 2. When I open FishBun and take a photo, the returned photo has landscape orientation instead of portrait.

To Reproduce Steps to reproduce the behavior:

  1. Use Pixel XL
  2. Go to Fishbun all photos
  3. Take a new photo, select it and import it
  4. Observe the photo has incorrect orientation(landscape instead of portrait). The path for importing the file is

file:///storage/emulated/0/DCIM/Camera/JPEG_20191216_121557_4994755634447972727.jpg

picker_first

  1. Open FishBun again, and select the same photo you took at step 3. Observer that not the photo is imported correctly, with portrait orientation. Also notice that this time import path is via media provider:

content://media/external/images/media/291

picker_second

Expected behavior FishBun should correctly resolve photo orientation from EXIF tags and return the same image on first shot and all consecutive ones.

Screenshots Added above

Smartphone (please complete the following information):

Additional context

sangcomz commented 4 years ago

thank you :) i will check it.