Bug 505978

Summary: Expose full PNG Parameters text and enable copy-to-clipboard in the Metadata sidebar
Product: [Applications] digikam Reporter: Christian Kleineidam <brutha.newsletter>
Component: Metadata-ExifToolAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.7.0
Sentry Crash Report:
Attachments: Beautiful Sunset out of Forge with Parameter metadata

Description Christian Kleineidam 2025-06-22 15:59:20 UTC
Created attachment 182525 [details]
Beautiful Sunset out of Forge with Parameter metadata

Problem & Context:
Image-generation tools such as Forge embed the entire prompt (and other settings) in a PNG iTXt chunk labeled Parameters. digiKam currently displays only a single truncated line of that field; the user must hover to reveal a tooltip. Two limitations follow:

1. Discoverability deficit – most users never discover the hidden, hover-only text.
2. You can drag-select the text, but Ctrl + C / Copy copies the PNG image, not the text.

* Always display the full multi-line Parameters value (wrapped).
* When the user selects text inside that field and presses Ctrl + C or uses Copy, the clipboard should contain the selected metadata—not the image.
* (Optional enhancement) Add a tiny 📋 icon to copy the entire Parameters block in one click.

For artists iterating on AI prompts—or archivists verifying provenance—easy access to the full Parameter block is crucial.

Steps to Reproduce:

1. Open a Forge-generated PNG in digiKam. (I attached one)
2. View the Properties sidebar → PNG → Parameters.
3. Observe: only one truncated line is visible; hovering shows a tooltip, but the text is not selectable.

Current Behaviour:

PNG
 └─ Parameters   A serene coastal sunset with ra…
                [hover tooltip shows full prompt, unselectable]

SOFTWARE/OS VERSIONS
Windows:  Microsoft Windows 11 Pro Version 10.0.26100 Build 26100
Comment 1 Maik Qualmann 2025-06-22 19:34:23 UTC
Git commit 4b63a022128f4f96e4fb7e35f31db19653678c4f by Maik Qualmann.
Committed on 22/06/2025 at 19:32.
Pushed by mqualmann into branch 'master'.

copy full metadata values to a file or clipboard
FIXED-IN: 8.7.0

M  +1    -1    NEWS
M  +10   -2    core/libs/widgets/metadata/exiftool/exiftoollistviewitem.cpp
M  +1    -0    core/libs/widgets/metadata/exiftool/exiftoollistviewitem.h
M  +2    -2    core/libs/widgets/metadata/exiftool/exiftoolwidget.cpp
M  +8    -1    core/libs/widgets/metadata/exiv2/metadatalistviewitem.cpp
M  +5    -3    core/libs/widgets/metadata/exiv2/metadatalistviewitem.h
M  +2    -2    core/libs/widgets/metadata/exiv2/metadatawidget.cpp

https://invent.kde.org/graphics/digikam/-/commit/4b63a022128f4f96e4fb7e35f31db19653678c4f
Comment 2 Maik Qualmann 2025-06-22 19:37:36 UTC
Note: The option to save the metadata of the selected tab to a file or copy it to the clipboard already exists in digiKam, with a tool button in the header next to the search bar.
However, the metadata values ​​were previously limited to 512 characters.

Maik