Bug 384136 - Radiance .HDR file format read support
Summary: Radiance .HDR file format read support
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 3.2.1
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-29 11:48 UTC by Alex
Modified: 2023-07-26 10:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2017-08-29 11:48:43 UTC
As title says - small hdr workflow improvement.
Comment 1 wolthera 2017-08-30 08:35:35 UTC
Are there any specs of this fileformat available?
Comment 3 Alex 2017-08-30 08:44:49 UTC
As far as I remember there is no colorspace info in .hdr in contrary to .exr
Comment 4 Alex 2021-02-05 09:27:22 UTC
*** Bug 413958 has been marked as a duplicate of this bug. ***
Comment 6 Dmitry Kazakov 2023-07-26 10:49:22 UTC
Git commit 1111025d4c79e52694df0f68f11bd11937aa11aa by Dmitry Kazakov, on behalf of Rasyuqa A. H.
Committed on 26/07/2023 at 12:49.
Pushed by dkazakov into branch 'master'.

[FEATURE] Add support for Radiance RGBE

The patch adds basic Radiance RGBE format `.hdr` import/export functionality 
to Krita.
Related: bug 413958

Import code is based on KImageFormats as they're indeed can parse RGBE images, but the results are always in uint8, aka. `QImage::Format_RGB32`. And export code is inspired from https://www.graphics.cornell.edu/~bjw/rgbe.html

Some format limitation:
- Flattened image
- No color profile, exported image will be always converted to float, linear sRGB
- No alpha

M  +1    -0    krita/data/aboutdata/developers.txt
M  +6    -1    libs/koplugin/KisMimeDatabase.cpp
M  +2    -0    plugins/impex/CMakeLists.txt
M  +1    -1    plugins/impex/raw/krita_raw_import.json
A  +25   -0    plugins/impex/rgbe/CMakeLists.txt
A  +282  -0    plugins/impex/rgbe/RGBEExport.cpp     [License: GPL(v2.0+)]
A  +28   -0    plugins/impex/rgbe/RGBEExport.h     [License: GPL(v2.0+)]
A  +346  -0    plugins/impex/rgbe/RGBEImport.cpp     [License: GPL(v2.0+)]
A  +23   -0    plugins/impex/rgbe/RGBEImport.h     [License: GPL(v2.0+)]
A  +37   -0    plugins/impex/rgbe/kis_wdg_options_rgbe.cpp     [License: GPL(v2.0+)]
A  +29   -0    plugins/impex/rgbe/kis_wdg_options_rgbe.h     [License: GPL(v2.0+)]
A  +96   -0    plugins/impex/rgbe/kis_wdg_options_rgbe.ui
A  +74   -0    plugins/impex/rgbe/krita_rgbe.desktop
A  +13   -0    plugins/impex/rgbe/krita_rgbe_export.json
A  +13   -0    plugins/impex/rgbe/krita_rgbe_import.json
A  +8    -0    plugins/impex/rgbe/tests/CMakeLists.txt
A  +-    --    plugins/impex/rgbe/tests/data/results/256box.hdr.png
A  +-    --    plugins/impex/rgbe/tests/data/results/objects.kra
A  +-    --    plugins/impex/rgbe/tests/data/sources/256box.hdr
A  +-    --    plugins/impex/rgbe/tests/data/sources/hdr/objects.hdr
A  +95   -0    plugins/impex/rgbe/tests/kis_rgbe_test.cpp     [License: GPL(v2.0+)]
A  +30   -0    plugins/impex/rgbe/tests/kis_rgbe_test.h     [License: GPL(v2.0+)]

https://invent.kde.org/graphics/krita/-/commit/1111025d4c79e52694df0f68f11bd11937aa11aa