Bug 461069 - Set album date for new albums to earliest picture date
Summary: Set album date for new albums to earliest picture date
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-27 14:53 UTC by Blomi
Modified: 2022-10-27 20:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blomi 2022-10-27 14:53:05 UTC
SUMMARY
When creating a new album digikam shall set the album date to the earliest date of the contained pictures.

STEPS TO REPRODUCE
1. Start digikam
2. Select some pictures in the thumbnail view
3. Select context menu "move to album"
4. Press the button "new Album" in the dialog "Select album"

OBSERVED RESULT
The predefined date in the dialog "New album" is "today".

EXPECTED RESULT
Option A) The predefined date in the dialog "New album" should be the earliest date of the selected pictures.
Option B) Digikam should present the buttons "earliest"/"average"/"latest", which are also shown, when the properties of an existing album are modified.

ADDITIONAL INFORMATION
What is already implemented:
A) New album
1. Create a new folder in the operating system
2. Place some pictures into the folder
3. Start digikam and let digikam refresh
4. Digikam does recognize the new album and sets the album property date to the earliest date of all contained pictures.

B) Edit album
When album properties are modified, there are buttons set date to "earlies"/"average"/"latest".
Comment 1 Maik Qualmann 2022-10-27 19:59:14 UTC
Git commit c5e850df3a1a9bdd1019e288f1fda2fd1a188ce3 by Maik Qualmann.
Committed on 27/10/2022 at 19:57.
Pushed by mqualmann into branch 'master'.

update album date when copying move and delete images
Both the target album and the source album, depending on the action.
FIXED-IN: 8.0.0

M  +1    -1    NEWS
M  +47   -1    core/libs/database/utils/ifaces/dio.cpp
M  +1    -0    core/libs/database/utils/ifaces/dio.h
M  +12   -0    core/libs/iojobs/iojobdata.cpp
M  +1    -0    core/libs/iojobs/iojobdata.h

https://invent.kde.org/graphics/digikam/commit/c5e850df3a1a9bdd1019e288f1fda2fd1a188ce3
Comment 2 Maik Qualmann 2022-10-27 20:04:15 UTC
Note that there is an option in the digiKam settings to use the oldest, newest or average album date.

Maik