Bug 333001

Summary: JP2 compression has no effect
Product: [Applications] digikam Reporter: DrSlony <bugs>
Component: Plugin-DImg-JP2KAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, caulier.gilles
Priority: NOR    
Version: 4.2.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 4.3.0

Description DrSlony 2014-04-03 07:27:02 UTC
JPEG2000 images always end up saved with the same file size regardless of "quality" slider setting or whether "lossless" is enabled or not. Tested in BQM and showFoto.

Reproducible: Always
Comment 1 DrSlony 2014-08-06 22:31:58 UTC
Still not fixed in 4.2.0.
Comment 2 caulier.gilles 2014-08-22 11:59:23 UTC
I can reproduce the problem with digiKam and KColorPaint, which use the same rules about JP2 compression rate passed to Jasper lib.

Sound like a problem with Jasper lib options parser to jp2_encode().

Gilles Caulier
Comment 3 caulier.gilles 2014-08-22 14:58:56 UTC
Git commit a0aa06602dca543d4bcb6d4529b6547b416056f1 by Gilles Caulier.
Committed on 22/08/2014 at 14:57.
Pushed by cgilles into branch 'master'.

Fix rate value argument to pass to Jasper::jp2_encode().
Rate value must use comma float, not dot float notation.
Constify and polish.
FIXED-IN: 4.3.0

M  +2    -1    NEWS
M  +13   -16   libs/dimg/loaders/jp2kloader.cpp
M  +1    -1    libs/dimg/loaders/jp2kloader.h

http://commits.kde.org/digikam/a0aa06602dca543d4bcb6d4529b6547b416056f1