Bug 456735

Summary: OpenEXR Alpha channel ignored
Product: [Applications] kdenlive Reporter: kde545
Component: Project Bin & ImportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: fritzibaby, mircomir
Priority: NOR Keywords: triaged
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 24.12
Sentry Crash Report:
Attachments: Testcase converted to PNG

Description kde545 2022-07-15 01:18:31 UTC
SUMMARY
Kdenlive ignores the alpha channel of openexr images and image sequences.


STEPS TO REPRODUCE
1. load an openexr image (or image sequence) with alpha channel
2. put it in a track directly over another track with a color clip

OBSERVED RESULT
color clip is hidden completely by the openexr, ignoring the alpha channel (alphaover/composite does nothing)

EXPECTED RESULT
color clip shining through alpha areas like with png
Comment 1 Mirco Miranda 2023-08-20 08:06:48 UTC
If kdenlive uses the EXR kimageformats plugin, it should be fixed with this MR: https://invent.kde.org/frameworks/kimageformats/-/merge_requests/172
Comment 2 Jean-Baptiste Mardelle 2023-08-22 08:31:07 UTC
Thanks Mirco. Yes, Kdenlive/MLT uses the kimageformats plugins to render EXR images, so this will effectively fix this problem. Hope it will be merged in a next Frameworks release.
Comment 3 Mirco Miranda 2023-08-28 18:26:08 UTC
(In reply to Jean-Baptiste Mardelle from comment #2)
> Thanks Mirco. Yes, Kdenlive/MLT uses the kimageformats plugins to render EXR
> images, so this will effectively fix this problem. Hope it will be merged in
> a next Frameworks release.

Merged today on KF5.
Comment 4 emohr 2024-10-02 12:09:13 UTC
Hello Mirco. Is the issue fixed with the latest Kdenlive version?
Comment 5 Mirco Miranda 2024-10-02 16:22:30 UTC
(In reply to emohr from comment #4)
> Hello Mirco. Is the issue fixed with the latest Kdenlive version?

It is fixed in frameworks-kimageformats (KF5) and frameworks-kimageformats (KF6). Jean told to us that Kdenlive uses the  frameworks-kimageformats plugin so it should fixed also in Kdenlive.

I don't do video editing and point 2 of the instructions (to replicate the problem) is quite vague to me.

Try it and let us know :)
Comment 6 emohr 2024-10-02 16:45:11 UTC
Mmh. Kdenlive 24.08.1 can't import EXR files. I tried with the picture from here: https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr-images/main/ScanLines/CandleGlass.exr
Comment 7 Mirco Miranda 2024-11-21 11:24:37 UTC
Created attachment 176004 [details]
Testcase converted to PNG

Image read by EXR plugin and converted to PNG (sRGB). I confirm that now the problem is not with the plugin in KImageFormats.
Comment 8 emohr 2024-11-21 15:27:43 UTC
The alpha channel in "CandleGlass.exr" is correctly shown in Kdenlive master now.

I closed this bug. If it still appears in the latest version, please feel free to re-open it and update the affected version number.