[Feature] Sort by date then filename for images taken at the same time #15924
Replies: 5 comments
-
Timestamps should be sorted with millisecond precision. Can you check the EXIF data for these assets to see if the relevant date-time field (like DateTimeOriginal) is the same for these burst photos? |
Beta Was this translation helpful? Give feedback.
-
Also check for ordering tags like SubSecTime |
Beta Was this translation helpful? Give feedback.
-
If I'm reading the exiftools output correctly the original raw file (.cr3) has millisecond precision on the last 3 fields in the output (output grep'd for 'Date')
Whereas the image downloaded from Immich only has it in the Create Date field?
I think that's a Lightroom issue (rather than an issue with the plugin). Even when I do a regular export from LR to my local disk it has the same metadata as what's in Immich, i.e. only has millisecond precision on the Create Date field :/
So while this does not seem to be an Immich issue (my apologies) I wonder what the best way to handle this is since I cannot control what Lightroom exports (it's already set to export 'All Metadata'). I don't think Immich could reliably use the Create Date in this scenario because the photos have had their timestamp adjusted in LR to correct for a different timezone so if Immich fell back to something like Create Date if Date/Time Original (or whatever other field it looks at) does not have milliseconds it would put it out of order. I wonder if falling back to image name would make sense since most of the time cameras and smartphones put their filenames in sequence and that would work as a proxy for time order? 🤔 |
Beta Was this translation helpful? Give feedback.
-
It should be fine to sort additionally by file name as a tie-breaker to handle this sort of thing. |
Beta Was this translation helpful? Give feedback.
-
Milliseconds is not enough. Because when scanning a whole series of photos and then backdating them to the period in the past, all pictures get the same time. The trick is to sort by date + name of the file. Can be standard. Because that doesn't bother anyone I think. Actually only has advantages. 😊 |
Beta Was this translation helpful? Give feedback.
-
The bug
Photos shot within the same second are next to each other in the Photos view but out of order amongst each other.
For example I have the following sequence of 10+ photos all shot in the same second on my Canon R6 MK II...
BV_20241106_8223
BV_20241106_8224
BV_20241106_8225
...
BV_20241106_8233
BV_20241106_8234
BV_20241106_8235
Under Photos in Immich they display in the following order. Doesn't matter if it's sorted newest to oldest or vice versa...
BV_20241106_8233
BV_20241106_8234
BV_20241106_8228
BV_20241106_8225
BV_20241106_8227
BV_20241106_8223
BV_20241106_8226
BV_20241106_8224
etc
I assume this is because they are all shot within the same second but images only sort based on timestamp and not a second metadata field such as name and thus anything shot in the same second ends up in a different (random?) order.
I would expect them to be sorted by time and then by filename or something else that would put them the correct sequence if they are all shot within the same second. Having them in a random order breaks the sequence flow for things like sports, etc.
The OS that Immich Server is running on
Ubuntu
Version of Immich Server
v1.120.2
Version of Immich Mobile App
n/a
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions