incorrect image orientation

I have a problem with image, the image after taken appears with the wrong orientation running on android, and when saving in the db saves wrong too, the documentation has nothing about it, can someone help me? I’m using ionic 5.4.16, angular 5.0.0 and angular / cli 8.3.26