hooram / ownphotos

Self hosted alternative to Google Photos
MIT License
2.77k stars 232 forks source link

Timestamps are (presumably) based on file names and not metadata, so photos are out of order #140

Open ghost opened 4 years ago

ghost commented 4 years ago

I just spun up a docker container with OwnPhotos and had it read a directory that holds all of my photos. The problem is, the photos that had timestamps didn't seem to be ordered in any particular way, and some were marked for the year 6423! I looked at the file name, and it had 6423 in it, so I'm assuming the app is basing the file date on the photo name rather than reading the photo's metadata and extracting the date from that.

derneuere commented 3 years ago

It tries to find a timestamp in the filename after reading the exif Data and failing to do so: https://github.com/hooram/ownphotos/blob/be718825645f82c0c01156e9a7c516af04e5554b/api/models.py#L420-L433

What would be a more expected result? Maybe making it optional with a checkbox before scanning the folders?