When I take a portrait photo, it shows up correctly on the phone. But when I transfer it to certain software, it shows up flipped sideways. Why is this? Is it the fault of the phone or the software that's reading the image? Is there a way to fix a batch of these images so that all software shows them correctly?
The phone is an LG G3, but it's happened to me on multiple phones, and many people have reported this problem, e.g.: https://androidforums.com/threads/vertical-photos-rotating-to-horizontal-orientation.588960/
The same thing happens if I use a different camera app, OpenCamera, instead of the stock Android app.