Bug 486529 - Data loss on layer style Hard Mix Softer blendmode
Summary: Data loss on layer style Hard Mix Softer blendmode
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: layer styles (show other bugs)
Version: 5.2.2
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-03 20:23 UTC by Know Zero
Modified: 2024-05-08 10:10 UTC (History)
2 users (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 Know Zero 2024-05-03 20:23:22 UTC
SUMMARY

When you copy a layer style or save a document with the Hard Mix Softer blend mode, the blend mode is lost and goes to Normal



STEPS TO REPRODUCE
1. Create any layer style with the Hard Mix Softer (Photoshop) blend mode
2. Copy the layer style and paste it to another
3. Check the layer style

alternative

1. Create any layer style with the Hard Mix Softer (Photoshop) blend mode
2. Save the document and then close it
3. reopen the document

OBSERVED RESULT
Blend mode is reset to Normal

ASL shows:

<asl>
 <node classId="null" type="Descriptor" name="">
  <node unit="#Prc" key="Scl " value="100" type="UnitFloat"/>
  <node key="masterFXSwitch" value="1" type="Boolean"/>
  <node classId="SoFi" key="SoFi" type="Descriptor" name="">
   <node key="enab" value="1" type="Boolean"/>
   <node key="Md  " value="Nrml" type="Enum" typeId="BlnM"/>
   <node unit="#Prc" key="Opct" value="75" type="UnitFloat"/>
   <node classId="RGBC" key="Clr " type="Descriptor" name="">
    <node key="Rd  " value="255" type="Double"/>
    <node key="Grn " value="255" type="Double"/>
    <node key="Bl  " value="255" type="Double"/>
   </node>
  </node>
 </node>
 <node classId="Styl" type="Descriptor" name="">
  <node classId="documentMode" key="documentMode" type="Descriptor" name=""/>
 </node>
</asl>
EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5

ADDITIONAL INFORMATION

The normal layer blend mode for Hard Mix Softer seems to be fine so this is only for layer styles

I set severity to major based on previous data loss being market as major
Comment 1 Deif Lou 2024-05-04 06:50:57 UTC
To be honest, I don't think that mode should appear on the layer styles. The list should only accept the photoshop compatible modes (I know that it says "photoshop" in the name, but it really tries to mimic the hard mix brush texture mode used in ps, not any layer blend mode).
I'll ask the devs.
Comment 2 Dmitry Kazakov 2024-05-08 08:24:17 UTC
Hi, DeifLou and KnowZero!

Yes, please just remove this blendmode from the lost of allowed blendmodes in layer styles. The list of modes in layer styles is fixed and defined by the ASL file format. We cannot extend it.