[Bug 282903] New: Image corrupted after writing metadata due to sidecar XMP

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 282903] New: Image corrupted after writing metadata due to sidecar XMP

Michal Thoma
https://bugs.kde.org/show_bug.cgi?id=282903

           Summary: Image corrupted after writing metadata due to sidecar
                    XMP
           Product: digikam
           Version: 2.1.1
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Metadata
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           2.1.1 (using KDE 4.6.2)
OS:                Linux

I have a RAW (PEF) file with accompanied XMP, created by digikam 2.0 before - I
stopped writing metadata to XMP and reverted to writing metadata to image
directly. I still want to Read Metadata from XMP so I also have ticked this.

Now when I change metadata like rating in any Image which has accompanied XMP,
file get corrupted after that.

When the option Read Metadata from XMP is not selected, corruption will not
happen.

Reproducible: Always

Steps to Reproduce:
1. In Preferences Metadata tab choose Write Metadata to XMP sicar only.
2. Change Rating or other metadata of the image.
3. In Prefernces Metadata tab choose Write Metadata to image files only. Also
tick Read Metadata from XMP option.
4. Change some image metadata then.



Actual Results:  
Image is corrupted and can't be viewed in digikam or other app.

Expected Results:  
Image metadata will be changed and data which were in XMP will be appended or
used without corrupting the image.

Sample files (original image with xmp and corrupted image) are for download
here:

http://download.thoma.cz/digikam-xmp-corruption.zip

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 282903] Image corrupted after writing metadata due to sidecar XMP

Marcel Wiesweg
https://bugs.kde.org/show_bug.cgi?id=282903





--- Comment #1 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-10-29 15:08:01 ---
What is your exiv2 and libkexiv2 version? Go to Help/Components for this info.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 282903] Image corrupted after writing metadata due to sidecar XMP

Marcel Wiesweg
In reply to this post by Michal Thoma
https://bugs.kde.org/show_bug.cgi?id=282903


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #2 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-10-29 15:10:58 ---
It seems the corrupted image contains only the metadata from the sidecar, the
original image's metadata seems to be lost. I believe there are quite a few
related bugs.
Nonetheless, I dont know why the image cannot be opened anymore. Any ideas
where the problem in the file structure can be found?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 282903] Image corrupted after writing metadata due to sidecar XMP

Michal Thoma
In reply to this post by Michal Thoma
https://bugs.kde.org/show_bug.cgi?id=282903





--- Comment #3 from Michal Thoma <michal thoma cz>  2011-11-08 08:10:14 ---
My LibExiv2 is 0.21.1 and LibKExiv 2.0.0

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 282903] Image corrupted after writing metadata due to sidecar XMP

Gilles Caulier-4
In reply to this post by Michal Thoma
https://bugs.kde.org/show_bug.cgi?id=282903


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|Metadata                    |Sidecar Management




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 282903] Image corrupted after writing metadata due to sidecar XMP

Marcel Wiesweg
In reply to this post by Michal Thoma
https://bugs.kde.org/show_bug.cgi?id=282903

Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Marcel Wiesweg <[hidden email]> ---
With the sidecar fixes applied for next digikam 2.6, current exiv2 and
libkexiv2, I could successfully edit the image's metadata without creating
corruption.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 282903] Image corrupted after writing metadata due to sidecar XMP

Gilles Caulier-4
In reply to this post by Michal Thoma
https://bugs.kde.org/show_bug.cgi?id=282903

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.6.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel