Bug 400792

Summary: Failure to export to JPEG 2000
Product: [Applications] digikam Reporter: acaiusa
Component: Showfoto-SaveAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 5.9.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0.0
Sentry Crash Report:

Description acaiusa 2018-11-07 10:23:37 UTC
SUMMARY

Unable to convert/export from JPG to JP2 file format. Happens both in Showfoto and Digikam. However, image conversion works for other software, - convert (command line converter) and darktable. 

STEPS TO REPRODUCE
1. open image
2. export/save as jp2
3. 

OBSERVED RESULT

Error popup with message " Failed to save file foo.jp2 to <dir>/foo.jp2"

EXPECTED RESULT

Successful file conversion

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.12.6
KDE Frameworks Version: 5.45
Qt Version: 5.9.4

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2018-11-07 10:38:26 UTC
Can you test with 6.0.0-beta3 AppImage linux bundle. I suspect a problem with libjasper from your system.

https://files.kde.org/digikam/

Showfoto can be run easily from the bundle using a specific CLI arguments. Look in README file for details.

Also, it can help if you run showfoto from your system using a console to identify exactly the problem...

Gilles Caulier
Comment 2 Maik Qualmann 2018-11-07 11:42:48 UTC
Git commit 97649a4a0b9091f6036ea40ceb4a5eb607aa53a1 by Maik Qualmann.
Committed on 07/11/2018 at 11:41.
Pushed by mqualmann into branch 'master'.

fix encoding jp2k image
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +2    -1    core/libs/dimg/loaders/jp2kloader.cpp

https://commits.kde.org/digikam/97649a4a0b9091f6036ea40ceb4a5eb607aa53a1
Comment 3 Maik Qualmann 2018-11-07 11:50:40 UTC
Even more wrong, big images still cause problems.

Maik
Comment 4 Maik Qualmann 2018-11-07 20:42:12 UTC
Git commit 5007496c7d5e7224b886de3bb6685dd72be973ab by Maik Qualmann.
Committed on 07/11/2018 at 20:40.
Pushed by mqualmann into branch 'master'.

fix jp2k encode
FIXED-IN: 6.0.0

M  +4    -3    core/libs/dimg/loaders/jp2kloader.cpp

https://commits.kde.org/digikam/5007496c7d5e7224b886de3bb6685dd72be973ab