puregallery / Pure-Gallery-Support

A repository to help support the Pure Gallery Application
0 stars 0 forks source link

Using created date for pics is not sorting correctly #26

Open Nostang3 opened 6 years ago

Nostang3 commented 6 years ago

For some resason after doing a media scan the Albums isn't showing the photos in the correct order. Photos that were created yesterday (2018:02:15) aren't showing up at the top of the Album view. The top photo in album view, if I look at Exif, will show 2013:08:30. It seems like it's just sorting by a mix of created and last modified date since I've been adding tags.

I've tried unchecking 'using create date' and running a scan, then rechecking and running another scan but it isn't fixing the sort.

Nostang3 commented 6 years ago

It seems also like that Created Date/Time doesn't show up in the Exif data. Some photos have it, other don't. It it possible the exif is corrupted causing it not to be able read the exif created date anymore on some photos?

Edit: I don't know if they got corrupted but I do know that the capture date was removed from a bunch of photos. Verified through another program. Not sure what would cause that information to get stripped. Edit 2: The jpg files I was able to reedit their exif and correct the stripped date creation, but what was left was PNG files and there is no easy way to edit exif on those so I just had to manually edit their last modified date to get them back into some order. The tagging of them introduced the issue by changing the last modified to a present day.

puregallery commented 6 years ago

Date created is used only when the images have it in their exif...if it's not present, the app will default to the file's modified date. PG doesn't try to modify the date created in any way right now. Tagging will always change the file's modified date since we write the exif information to the image itself. While applying tags, I'll see if I can modify the date variable in exif as well -- keep date created if it already has one, or else write the file's last modified to date created.

Nostang3 commented 6 years ago

I get that, but somewhere along the way the capture date was stripped from some jpg files and they appeared in the top of the list which made me think that the sort order was messed up. The PNG issues is just something I'll have to deal with because I don't think you can add capture date to PNG's so I'll just have to modify the last modified everytime I add a tag to the file.