Bug 456269

Summary: GMIC:The result of "relief light" is different from the preview
Product: [Applications] krita Reporter: thetwo <thetwo222>
Component: G'Mic for KritaAssignee: amyspark <amy>
Status: RESOLVED UPSTREAM    
Severity: normal CC: amy, David.Tschumperle
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: bug
pic
CImg saved result

Description thetwo 2022-07-03 09:44:50 UTC
Created attachment 150359 [details]
bug

krita-nightly-x64-5.2.0-prealpha-2130f06ac8
1.Use the "relief light" filter on a picture
2.turn off "opacity as heightmap"
Comment 1 amyspark 2022-07-04 22:49:02 UTC
Cannot reproduce with G'MIC 3.1.5 (commit 06d2048) and Krita 5.2.0 prealpha (commit 76a9e434dd).

Can you send the file or image you were working with?
Comment 2 thetwo 2022-07-04 22:55:01 UTC
Created attachment 150399 [details]
pic
Comment 3 Bug Janitor Service 2022-07-05 04:36:46 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 4 amyspark 2022-07-20 22:19:29 UTC
Created attachment 150779 [details]
CImg saved result

I was able to reproduce this bug both on paint.NET (GMIC 2.9.9) and GIMP 2.10.30 (GMIC 3.1.2).

The preview widget renders the image incorrectly; hooking into the host code and telling CImg to save a copy of the returned image (before receiving it in Krita) results in the attached file.
Comment 5 amyspark 2022-07-20 22:20:32 UTC
Marking as RESOLVED UPSTREAM and CC'ing David, due to the previous comment I assess this as a bug in G'MIC itself.