Bug 172295

Summary: digiKam has a hard dependency on Jasper library
Product: [Applications] digikam Reporter: Luke-Jr <luke-jr+kdebugs>
Component: Portability-RuntimeAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles
Priority: NOR    
Version: 4.4.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Unspecified   
Latest Commit: Version Fixed In: 4.5.0
Sentry Crash Report:

Description Luke-Jr 2008-10-06 21:02:56 UTC
Version:            (using KDE 4.1.2)
Installed from:    Gentoo Packages

Digikam cannot be built without the Jasper library. It would be nice if this were possible.
Comment 1 caulier.gilles 2008-10-07 08:01:49 UTC
What's the problem with Jasper library exactly ? This library is available for all system BOX normally (linux/mac/win32)... 

Gilles Caulier
Comment 2 Luke-Jr 2008-10-07 08:03:36 UTC
At one point, Jasper was non-Free and GPL-incompatible.

Now, it's just a mostly useless (since nobody uses jpeg2000) dependency.
Comment 3 caulier.gilles 2008-10-10 10:39:43 UTC
Luke-Jr,

Jasper is non GPL ??? really ???

KDE core use it. and this library is installed on standard by linux dist like Mandriva full GPL edition...

I cannot see a licence problem here...

Note : there is an alternative to Jasper : openJpeg. But for the moment, performance are lesser than Jasper.

Gilles Caulier
Comment 4 caulier.gilles 2008-10-10 10:54:51 UTC
Jasper licence :

http://www.ece.uvic.ca/~mdadams/jasper/LICENSE

sound like GPL compatible...

Gilles Caulier
Comment 5 caulier.gilles 2008-10-10 10:55:48 UTC
Openjpeg is published to BSD licence:

http://www.openjpeg.org/BSDlicense.txt

Gilles Caulier
Comment 6 Luke-Jr 2008-10-10 18:03:49 UTC
*At one point* Japser was non-Free and GPL-incompatible. It has since changed to a BSD-like license.
Comment 7 caulier.gilles 2008-10-12 20:34:44 UTC
Sorry, but i cannot see a fine reason to add an option to disable native JPEG 2000 support in digiKam

Gilles Caulier
Comment 8 caulier.gilles 2014-10-31 17:23:20 UTC
Git commit 471b55515439037ce4de2706347e0393dfc85fc0 by Gilles Caulier.
Committed on 31/10/2014 at 17:22.
Pushed by cgilles into branch 'master'.

make Jasper library optional to support JPEG2000
FIXED-IN: 4.5.0

M  +24   -36   CMakeLists.txt
M  +4    -2    NEWS
M  +3    -3    README
M  +4    -1    app/CMakeLists.txt
M  +3    -3    app/utils/config-digikam.h.cmake.in
M  +12   -3    libs/dialogs/libsinfodlg.cpp
M  +12   -4    libs/dimg/dimg.cpp
M  +22   -3    libs/widgets/common/filesaveoptionsbox.cpp
M  +1    -1    libs/widgets/common/filesaveoptionsbox.h
M  +9    -3    utilities/imageeditor/editor/editorwindow.cpp
M  +15   -12   utilities/importui/widgets/advancedsettings.cpp
M  +8    -3    utilities/queuemanager/CMakeLists.txt
M  +10   -1    utilities/queuemanager/manager/batchtoolsmanager.cpp
M  +28   -12   utilities/setup/setupiofiles.cpp
M  +1    -1    utilities/setup/setupiofiles.h

http://commits.kde.org/digikam/471b55515439037ce4de2706347e0393dfc85fc0