Hi all,

done a little testing of my own. See my responses below, then my next post will be about what little experiment I performed.

Originally Posted by CyberJack
That the two images in question here were re-uploaded and the same
thing occurred would indicate the problem does not lie with the ODK
uploader but within the image itself.

Not necessarily. It only indicates that the issue is repeatable. given the issue only seems to arise on this site but not people's devices this indicates that it is likely (not conclusive) that there may be an issue with the site. This may not be a fault with the site, but actually a feature if the site is set up this way.

Originally Posted by CyberJack
It appears that the issue arises on smartphone cameras (Apple and Android)
when the image orientation becomes corrupted.
Sorry Jack, I don't understand how you come to the conclusion that the image is corrupted. If it was corrupted it wouldn't display properly, if at all and this would be across multiple devices. It is only showing an incorrect orientation on one, this site.

Originally Posted by CyberJack
Here are two easy fixes.

[1] In Windows: select Paint, File, Open (your photo image file), click Rotate Left or Rotate Right as appropriate (select "Flip Vertically" to turn the image upside down, or select "Flip Horizontally" to make a mirror image of the photo). Once the orientation is correct, whether or not you changed it, click on File > Save As > JPEG > accept or change the file name and location. This will set the image's default orientation as viewed, regardless of the original camera orientation.
On Mac: open Photos app > select File > Import >select file > Image in menu > Rotate Clockwise (or Counterclockwise) > File > Close or Share. You also can open the file in the Preview app > click Tools > Rotate Left or Right > File > Save.

[2] The image is rotating because you are saving the image in JPEG, if you save your image in PNG then the orientation will not change.

Just try this and re-post in this topic.

Hope this helps.
------------------------
Jack


These are good workarounds.

Yes the image is rotating in JPEG likely because of the EXIF metadata, this is how a device determines the correct orientation for viewing vs the orientation of the information. This is device (and program) dependent.

When you edit and resave a JPEG, in my experience the program resets the orientation to the default Top-left (1) from whatever it was before and saves the image as displayed. This then resets the image so that it doesn't need some rotation to display properly, solving the issue. See next post.

Wehn you save as a PNG, the EXIF metadata is stripped when you write a PNG file and so the orientation becomes fixed to the viewed orientation. See next post.



Patrick