https://bugs.kde.org/show_bug.cgi?id=432265

            Bug ID: 432265
           Summary: No error message when Digikam fails to read XMP
                    metadata from image file
           Product: digikam
           Version: 7.1.0
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Metadata-Maintenance
          Assignee: digikam-bugs-n...@kde.org
          Reporter: jose_oli...@hotmail.com
  Target Milestone: ---

Created attachment 135275
  --> https://bugs.kde.org/attachment.cgi?id=135275&action=edit
Test files

SUMMARY
No error message is displayed when XMP is failed to be read from image file.
XMP

STEPS TO REPRODUCE
1. Open and example files to Digikam album contained in WPG_XMP.zip
2. Making sure all XMP tags are enabled in Settings | Configure digikam |
Metadata | XMP, click on "Reread metadata from File"
3. Click on files and view XMP metadata in the Metadata tab (located on the tab
on the right and selecting XMP)

OBSERVED RESULT
- For Readable_XMP.jpg - data is displayed on XMP Metadata tab.
- For Unreadable_XMP.jpg - no data is displayed on XMP Metadata tab, XMP data
view is blank. The file contains XMP metadata.

EXPECTED RESULT
- For cases where there is an error reading metadata, notify/warn user with an
error message displayed in the pane. Example: "Invalid XMP data was found in
file".

SOFTWARE/OS VERSIONS
Windows: Windows 10

ADDITIONAL INFORMATION
- In this particular case, the issue pertains to how the XMP was written. In a
sense, it is valid XMP but it is very convoluted. The issue is described in the
exiv2 issue reported here - https://dev.exiv2.org/issues/0001284
- As described in the bug, at one point it would lead to a crash of Digikam.
- The issue is quite annoying for users of the now un-supported Windows Photo
Gallery. Exiftool is able to read the xmp. A way to correct the convoluted XMP
by having it being re-constructed using the exiftool command:

exiftool Unreadable_XMP.jpg -xmp:all= -tagsfromfile @ -xmp:all

- I do not expect that Digikam correct the convoluted XMP. Should indicate that
there is a problem reading the data and an alternative is to have it
overwritten.
- Exiv2 returns "Error: XMP Toolkit error 101: Schema namespace URI and prefix
mismatch".

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to