Photo orientation from intent ionic 2


#1

I am adding my app to the “open with” list by using the intent mechanism. it woks fine. however, sharing portrait photos from gallery and importing it to my app results with 90 degree rotated photo. Please note, I am not using the camera in this scenario and therefore I cannot use the correctOrientation flag.
steps:

  1. take portrait picture with my camera(not inside my app).
  2. open the gallery and select the picture(not from my app).
  3. share the picture with my app by selecting my app from the list of “open with”
  4. handle the intent inside my app,

Results: Landscape pictures are imported correctly, portrait pictures are rotated 90 degree.
Can someone help with this issue?
Thanks
Sami.