Bug 502118

Summary: Transparency lost in vector shapes
Product: [Applications] krita Reporter: rbjazbbc <rbjazbbc>
Component: Layers/VectorAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: halla
Priority: NOR Keywords: regression, release_blocker
Version First Reported In: 5.2.9   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: First photo shows the creation of a vecor shape. Second photo shows lost transparency. Third photo is after a tiny adjustment to the color gradient.

Description rbjazbbc 2025-03-28 10:09:28 UTC
Created attachment 179813 [details]
First photo shows the creation of a vecor shape. Second photo shows lost transparency. Third photo is after a tiny adjustment to the color gradient.

SUMMARY
Transparency in vector shapes become grayish after closing then opening a Krita saved file.

STEPS TO REPRODUCE
1. In a vector layer, make a selection then convert it to shape.
2. In the "Tool Options", select a gradient fill, then select any color.
3. Select the preset "Foreground to Transparent".
4. Save the file, close it, and then open it again.

OBSERVED RESULT
Transparency is lost, showing greyish color (image attached).

EXPECTED RESULT
Transparency should look just like it did before closing the file.

SOFTWARE/OS VERSIONS
Windows: 11

ADDITIONAL INFORMATION
1. Any tiny adjustment to the gradient color bar restores correct transparency immediately (image attached).
2. The "Undo History" records the difference.
3. Artists working with lots of transparency vector layers need to do a tiny adjustment for all the vector shapes in all layers to correct this, which is time consuming and anti-productive. I hope it will be fixed in the next release.
Comment 1 Halla Rempt 2025-03-28 10:42:58 UTC
I can confirm the issue and it is a regression: 4.4.8 doesn't show the issue (so the file gets saved correctly, it's loading that's broken), 5.0.2 does, so it's been there for a long time.
Comment 2 rbjazbbc 2025-04-13 18:08:09 UTC
Crate a vector shape with gradient fill, copy it, then paste it.
The pasted vector shape will show the same bug instantly without closing/opening the file.
A tiny adjustment to the gradient fixes it.
Comment 3 Halla Rempt 2025-04-28 12:59:59 UTC
Wolthera suggested that this is caused by the icc-color parsing for 5.0, as that parses to kocolor and then to qcolor.
Comment 4 rbjazbbc 2025-07-01 20:11:46 UTC
(In reply to Halla Rempt from comment #3)
> Wolthera suggested that this is caused by the icc-color parsing for 5.0, as
> that parses to kocolor and then to qcolor.

I couldn't find icc-color in the settings to modify. What can I do to temporarily mitigate this?
Comment 5 Halla Rempt 2025-07-08 08:48:46 UTC
I'm afraid it really is a problem in our code, and Wolthera and I should sit together to find a fix. The issues is present since Krita 5.0, so it's been there for way too long...
Comment 6 rbjazbbc 2025-09-11 04:22:46 UTC
Is there an estimate to look into this? Please accept my apologies for this question. I know this is an open source project and there are other more important priorities, but vectors make certain tasks much easier.