Displaying Images by Correct Date

Hi!

I just mass-uploaded all my pictures to nextcloud. I noticed that the Photos app groups all the pictures as they were taken this month (March 2024).

Is there a way to group the pictures by their correct date?

Many thanks.

edit: if it makes any difference, I am using nextcloud 27.

Hello,

I have the same problem. Were you able to solve this issue?

If the images contain EXIF ​​data, there are various tools such as exiftool
sudo apt-get install libimage-exiftool-perl
to move images into directories such as year/month/day based on the time they were taken:

exiftool '-Directory<DateTimeOriginal' -d '%Y/%m/%d' /path/to/your/images

or (depending on the underlying file system) set the mtime, atime and ctime to the original date:

exiftool '-FileModifyDate<DateTimeOriginal' '-FileAccessDate<DateTimeOriginal' '-FileCreateDate<DateTimeOriginal' -ext jpg -r /path/to/your/images

After you have made such changes, the files must be scanned again to update the filecache in the database:

occ files:scan <user_id>

there are a lot of other tools which can do the same but I am not aware of a nextcloud app which can do it, you will have to do it on the command line.


Much and good luck,
ernolf