Photo rotation - is it just me?

1. What is the problem? Be very detailed.
When taking photos with ODK Collect images don't rotate as I would expect according to the orientation of the device at the time.

An image taken in portrait mode is displayed in landscape format (i.e. on its side). An image taken in landscape mode is displayed in landscape mode (as expected).

I have checked the EXIF data in the images and they claim to be 'Rotate 90 CW' or 'Normal' depending on whether they are portrait or landscape, they are always displayed as 'Normal'.

2. What app or server are you using and on what device and operating system? Include version numbers.
ODK Collect (can't remember when this first occurred, but it's at least a year, looking back at my photos!)
Windows 10
QGIS, Geosetter, MS Explorer, Word - you name it on Win 10, all behave the same

Android 6 and 7 (is this the problem?)

3. What you have you tried to fix the problem?

Tried this on 2 x Samsung Galaxy Note 4 (Android 6) and Sony Xperia Z5 Compact (Android 7) - same result. Viewed the images while still on the device - they are displayed in landscape format

Taken pictures with the same camera app outside ODK Collect - they work as expected and rotate accordingly (see below).

4. What steps can we take to reproduce the problem?
Take a picture in ODK with a form that uses an image (tested with max-pixels and without - same result)

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.
The first image was taken with the attached form should be portrait... (and according to the preview while I'm typing this message, it has been rotated to landscape)


Sample-mock.xml (1.1 KB)
This image was taken with the camera app (default, used by ODK Collect)

Why is this a problem?

On one project I have 2500 images... I have had to go through each and manually rotate in an image editor - I tried using autorotate software, but it didn't work!

Maybe it's not an ODK issue, but it hurts :frowning: so hoping it might be a mis-configuration of EXIF or something that can be solved... Seems rude to report it as a bug if it is just me :slight_smile: and then I'll have to live with it...

Out of hundreds of photos taken with tens of devices, I see most rotated correctly and very few If any are rotated incorrectly. I don't know whether screen rotation was set to auto or locked in landscape (we lock in portrait, but end users will be end users...)

I definitely remember seeing some photos taken with the device camera in wrong rotation. These go straight to Google photos outside of ODK.

1 Like

There is one issue in ODK Collect that we are aware of https://github.com/getodk/collect/issues/4571 so that's probably the reason.

Hi @Grzesiek2010
Thanks for this - apologies for the delay in responding, I've been out doing fieldwork and making sure I take only 'landscape' orientated images :slight_smile:

Do you have any indication of when this might be integrated into a release? - looks like the issue has been closed, which is great.

Thanks for your ongoing support. Much appreciated.

The issue is not closed it's still open. I don't know when it will be fixed, maybe I will find some time to work on it soon but even if I do that (or someone else) it would be released no sooner than in January.

Thanks - sorry, I've noticed that one part of the issue was closed but mistook that for a fix :slight_smile:

Appreciate the update on timescales - you're a busy man, so please don't take that as more pressure!

1 Like

Thanks for letting us know that it's a problem for you. It definitely makes it more important when real users complain about it.

2 Likes