Bug 333001 - JP2 compression has no effect
Summary: JP2 compression has no effect
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-JP2K (show other bugs)
Version: 4.2.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 07:27 UTC by DrSlony
Modified: 2022-01-08 05:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.3.0


Attachments

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