Image unexpectedly rotated when sent

Delta Chat version

2.22.0 on android.

Expected behavior

I attach an image from the gallery. The image is in portrait orientation. When clicking the send button it should be sent as is (in portrait mode).

Actual behavior

When inserted, the image is in portrait rotation as expected but when clicking the send button it is rotated into landscape orientation (and this cannot be changed obviously).

Steps to reproduce the problem

Well, insert an image and then send it… I don’t know what is the actual root cause why some images in portrait mode get rotated when sent.

I compared the exif data of some images that are rotated and others that are not rotated but could not detect anything abnormal… Hm!

Some extra notes: This has been happening for some time already, so not bound to the current version. And I also received DC messages with images from others which looked as if they have the same issue (DC on iphone).

I have had this problem as well with some pictures taken with CalyxOS’s camera

what system are you using?

If you have an image that consistently results in this problem, you can send it to delta@merlinux.eu (unchanged, attached as file or archived) or attach to github issue.