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

            Bug ID: 401970
           Summary: digikam break icc profile in png when modifiying
                    metadata
           Product: digikam
           Version: 6.0.0
          Platform: Appimage
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Metadata-Engine
          Assignee: digikam-bugs-n...@kde.org
          Reporter: nicolas.houde...@free.fr
  Target Milestone: ---

SUMMARY

digikam break icc profile in png when modifiying metadata

STEPS TO REPRODUCE
1. create a png with an icc profile like ProPhotoRGB (using imagemagick)

convert -profile /usr/share/color/icc/colord/sRGB.icc rose: -profile
/usr/share/color/icc/colord/ProPhotoRGB.icc rose.png

2. create another png, to by modified by digikam

convert -profile /usr/share/color/icc/colord/sRGB.icc rose: -profile
/usr/share/color/icc/colord/ProPhotoRGB.icc rose_modified.png

3. with digikam, just change anything on any metadata on the rose_modified.png
(tags, xmp, or iptc)


OBSERVED RESULT

the profile information has disappear on rose_modified.png
and the color profile is not readed anymore..
that cause the picture to be faded

if you convert rose.png to rose2.png
there's no error
convert rose.png rose2.png

but if you convert rose_modified.png to rose_modified2.png
you will get
digikam break icc profile in png when modifiying metadata
convert-im6.q16: iCCP: profile 'ICC PROFILE': B0070078h: exceeds application
limits `rose_modified.png' @ warning/png.c/MagickPNGWarningHandler/1654.
convert-im6.q16: iCCP: CRC error `rose_modified.png' @
warning/png.c/MagickPNGWarningHandler/1654.


EXPECTED RESULT

change metadata shouldn't change the profile


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: linux Mint 19
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.49 (appimage)
Qt Version: 5.9.6 (appimage)

ADDITIONAL INFORMATION

tested with Digikam 6.0 beta2 (appimage )

also did some tests with exiv2, but there's no error at all
adding metadata to png doesn't do any corruption of the icc profile.
so it doesn't seems to be a problem with exiv2

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

Reply via email to