Bug 400792 - Failure to export to JPEG 2000
Summary: Failure to export to JPEG 2000
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Save (other bugs)
Version First Reported In: 5.9.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-07 10:23 UTC by acaiusa
Modified: 2022-02-05 05:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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