https://bugs.kde.org/show_bug.cgi?id=399069
Would be nice to allow users to edit metadata. We know the metadata is parsed from Exiv2, which has capabilities per image type.
Internally
In ImageMetaInfoModel::getInfoForKey we read from the hash map mMetaInfoGroupVector we read the following keys:
- GeneralGroup
- ExifGroup
- FitsGroup
- IptcGroup
- XmpGroup
In turn those keys represent a MetaInfoGroup per metadata type. Modifying this hash map is probably sufficient, but we'll need to see if all the capabilities from Exiv2 have been included. We will want them to be KTextEdit fields so the user can make changes. Updates can be automatically saved or manually saved, understanding the complexity tradeoffs.
Metadata entries can be updated with ImageMetaInfoModelPrivate::setGroupEntryValue.
example:
d->setGroupEntryValue(GeneralGroup, "General.Size", sizeString)
Externally
We use Exiv2::Exifdatum::setValue to actually update the metadata. I do not think this action is connected to the ImageMetaInfoModelPrivate::setGroupEntryValue but that may be the right addition to enable this.