Bug 487396

Summary: Metadata does not affect the filename
Product: [Applications] digikam Reporter: phenrypereira <ordep.henrique.pereira>
Component: AdvancedRename-metadataAssignee: phenrypereira <ordep.henrique.pereira>
Status: RESOLVED FIXED    
Severity: normal CC: ordep.henrique.pereira
Priority: NOR    
Version First Reported In: 8.2.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 8.4.0
Sentry Crash Report:
Attachments: Digikam window opened in the albums and Metadata panel, overlaid by the advanced renaming window, with arrows pointing to the continuity of the steps reported

Description phenrypereira 2024-05-22 22:17:22 UTC
SUMMARY
When using the advanced rename tool to rename files based on image metadata, information is not returned for file name.

STEPS TO REPRODUCE
1. Have an album open
2. Right-click on any image, choose the 'Rename' option,
3. In the new window, click on the 'Metadata' option.
4. Check the box for some ExifTool and click 'OK'
5. In the main advanced rename window, click 'OK' to confirm the action.

OBSERVED RESULT
When confirming the choice of which metadata will be inserted when renaming files, nothing is returned, leaving only a separation pattern (if any) and other renaming patterns (all others work normally) followed by the file extension.

EXPECTED RESULT
As with other available renaming patterns (such as number, date, camera, etc.) it immediately returns the new file name if the operation is confirmed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7

ADDITIONAL INFORMATION
1. I did the same test on version 8.3 packaged in Flatpak and AppImage. The result was the same
2. Not all metadata in the ExifTool section has the problem of not returning information for the file name. Metadata from other sessions are also mostly not returning anything.
3. All tests carried out were on images from a Sony SLT-A57 camera
4. The test was done on JPEG and RAW images
5. Before looking to rename the file with any metadata, check its existence in the Metadata panel
Comment 1 phenrypereira 2024-05-22 22:24:12 UTC
Created attachment 169724 [details]
Digikam window opened in the albums and Metadata panel, overlaid by the advanced renaming window, with arrows pointing to the continuity of the steps reported
Comment 2 Maik Qualmann 2024-05-23 06:36:03 UTC
Git commit 705f34eaa68df302899dedc6e70235b349af7268 by Maik Qualmann.
Committed on 23/05/2024 at 06:34.
Pushed by mqualmann into branch 'master'.

add ExifTool metadata option in the Advanced Rename Tool
FIXED-IN: 8.4.0

M  +1    -1    NEWS
M  +21   -0    core/utilities/advancedrename/parser/options/metadataoption.cpp

https://invent.kde.org/graphics/digikam/-/commit/705f34eaa68df302899dedc6e70235b349af7268