Opened 10 years ago

Closed 10 years ago

#41963 closed defect (fixed)

digikam cannot store files in png anymore

Reported by: m214089 Owned by: jgosmann (Jan Gosmann)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cgilles (HumanDynamo), NicosPavlov
Port: digikam, libkdcraw

Description (last modified by ryandesign (Ryan Carsten Schmidt))

digikam cannot store files in png anymore. Calling digikam on the command line shows the offending problem:

libpng error: profile 'icc': 1B0Dh: invalid length

Doing some search in the internet reveals that something like that has been mentioned before and is related to wrong sizes of icc profiles from libkdcraw. The icc profiles are supposed to have a length of multiples of four. 1B0D is 6295 in decimal and so not a multiple of four. Following the discussion in the KDE bug list it should have been fixed in May or June.

Any idea?

Packages most probably involved:

  libpng @1.6.7_0 (active)
  libkdcraw @4.11.4_0 (active)
  digikam @3.5.0_1 (active)

I did an selfupdate and upgrade outdated to have the most recent packages installed.

Change History (3)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: caulier.gilles@… nicos@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to jan@…
Port: libkdcraw added

comment:2 Changed 10 years ago by NicosPavlov

The files in the package libkdcraw are indeed correct, but there are apparently some steps in the extraction procedure of macports which are breaking the files. In details, a "reinplace" instruction is used on all files, which automatically adds a line feed character to the files, artificially lengthening the file.

This will have to be corrected, but I am not sure yet on the best course of action in this case.

comment:3 Changed 10 years ago by NicosPavlov

Resolution: fixed
Status: newclosed

The issue should be solved by upgrading libkdcraw after the commits in r115590 and r115591.

Note: See TracTickets for help on using tickets.