Bug 396028

Summary: Imported Layer Styles Lose Properties
Product: [Applications] krita Reporter: kaz.foxsen
Component: layer stylesAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal CC: cyraid, dimula73, halla
Priority: NOR Keywords: triaged
Version First Reported In: 4.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kaz.foxsen 2018-06-30 18:23:34 UTC
This is on Windows 10, Krita 4.1.0 as downloaded 6/29/2018. Since I can't find a way to copy and paste layer styles, I tried exporting them via Layer Styles window and importing them for reuse, but when I apply the imported styles to a layer, their properties (ex. highlight/shadow colors and settings, bevel sizes, selected pattern) revert to generic settings. The same problem happens if I open my Krita file again and select an embedded style, although the Drop Shadow seems to have retained some settings.
Comment 1 Halla Rempt 2018-07-10 14:02:16 UTC
Hm, I must be doing something different from you:

* I created a layer with drop shadow, inner glow, satin
* I exported the layer style to a file called bla.asl
* I created a new image, and imported the asl file
* I selected the bla style in the asl file (we should be able to store more than one layer style in an asl file, but I guess that never got implemented)
* All three layer styles get correctly applied
Comment 2 Andrew Crouthamel 2018-09-28 03:09:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 kaz.foxsen 2018-09-29 03:20:37 UTC
I can export and import the basic style, but some of the settings revert back to default.

* I created a layer with Drop Shadow (change Distance to 100px, Spread to 50%, Size to 100px) and Bevel and Emboss (change Size to 5px, Highlight Opacity to 20%, Shadow Opacity to 20%).
* I exported layer style to file called Test.asl
* I created a new image and a new layer, then scribbled on it.
* Imported Test.asl Layer Style
* The Drop Shadow stats have reverted (Distance = 21px, Spread = 0, Size = 21)
* Bevel and Emboss are also partly reverted (Size = 21px, Highlight/Shadow Opacity = 75%)

If I change the drop shadow color and shading angle, that remains the same.
Comment 4 kaz.foxsen 2018-09-29 03:22:25 UTC
I just tested this on version 4.1.1
Comment 5 wolthera 2019-09-21 16:11:19 UTC
*** Bug 406759 has been marked as a duplicate of this bug. ***
Comment 6 Dmitry Kazakov 2019-11-20 15:22:15 UTC
Hi, Kaz!

Could you please check if the bug is still present in Krita 4.2.8 Beta? I cannot reproduce it anymore :(
https://krita.org/en/item/krita-4-2-8-beta/

If you can still reproduce it, could you make a screen-recording of the problem? I cannot reproduce it :(
Comment 7 kaz.foxsen 2019-11-23 20:46:18 UTC
I have version 4.2 now and just replicated my steps. It worked as expected so the bug must be gone.