Bug 479497 - AVIF bit depth selection or 12bits default
Summary: AVIF bit depth selection or 12bits default
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-QImage (show other bugs)
Version: 8.3.0
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-07 10:23 UTC by claude.c.mathey
Modified: 2024-01-07 11:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description claude.c.mathey 2024-01-07 10:23:02 UTC
SUMMARY
using AVIF instead of raw format to save place. need more then 8bits depth. 
There is no selection for AVIF export bit depth. DigiKam default to 8 bits. Would like to use 12 bits like in imagemagick

STEPS TO REPRODUCE
1. in editor, export a 12 or 16bits AVIF image, select AVIF format (same thing with a 16bit png input image or a raw nef input image)
2. dialog propose the qualtity, but no bit depth

OBSERVED RESULT
checking the saved image : Digikam says 8 bits, imagemagick also says 8 bits

EXPECTED RESULT
Enhancement : either have the bit depth selectable (like the "-depth 12" in image magick), or default to 12 bits

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2024-01-07 10:27:01 UTC
The bit-depth to encode must be follow the bit-depth of original image loaded in editor or BQM.

If RAW is processed as 16 bits, the exported AVIF must be encoded accordingly.

Gilles Caulier
Comment 2 Maik Qualmann 2024-01-07 11:57:43 UTC
Git commit 423aa2ec2affe2966fd4310084a30e4bb615bc76 by Maik Qualmann.
Committed on 07/01/2024 at 12:56.
Pushed by mqualmann into branch 'master'.

add support for a RGBA64 QImage from 16bit DImg
FIXED-IN: 8.3.0

M  +1    -1    NEWS
M  +23   -15   core/libs/dimg/dimg_qimage.cpp

https://invent.kde.org/graphics/digikam/-/commit/423aa2ec2affe2966fd4310084a30e4bb615bc76