Most todays smartphones do not rotate the picture in a file but just store an information what the correct rotation is. Modern image viewers (macOS preview or photos app for example) read this stored information and show the picture in the correct rotation.
When such a picture is imported to Confluence (in a page or a comment) it's displayed in wrong rotation. It would be nice to have Conflunce "understand" those files and display them corretly.
It appears you might be referring to this bug:
It mentions the same problem you are explaining. Can you let me know what version of Confluence you're using? It appears a fix was released for this in Confluence 6.2.2.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG