Bug 336857

Summary: Krita doesn't save the 'alpha-lock' status of layer inside *.ora xml stack
Product: [Applications] krita Reporter: David REVOY <info>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: alanhorkan, halla
Priority: NOR    
Version: 2.8.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description David REVOY 2014-06-29 08:08:42 UTC
Hi, 
Krita doesn't  save the 'alpha-lock' status of layer inside *.ora xml stack.  Alpha-lock is when you can't paint on transparency. The icon/button is in the layer stack of Krita, for each layers, and represented by a little checker white and grey representing transparency. 
Clicking on this icon add a lock on it.

To reproduce :
=============
Open a new project, or a existing one
Do a stack of layer
Turn a layer in alpha-lock mode ( press little checker icon , a lock icon will appear )
Save as open-raster

Result :
======
If you unzip the *.ora and check the stack.xml ; the layer has no "locked-alpha" markup.  So, it's normal Krita won't restore it on open. 

Expectation :
===========
To have Krita to can save/load a alpha-lock status of a layer inside *.ora.

It seams 'Alpha-lock' in open-raster was never existing or implemented (Mypaint don't have this feature on layers and the Gimp load and Save *.ora plugin is unmaintained anyway since 2010 and don't even restore basic 'selected' state....  ). But here I would find logical and not risky to have a similar markup as the edit-locked="true"  .  So, I would propose  alpha-locked="true" .
Documentation :
http://www.freedesktop.org/wiki/Specifications/OpenRaster/Draft/LayersStack/
http://www.freedesktop.org/wiki/Specifications/OpenRaster/Draft/LayerEditLockingStatus/
Comment 1 Halla Rempt 2015-01-15 12:40:18 UTC
Hm, yes -- but we should propose this to the mypaint people first, because otherwise it won't be all that useful. If we save the setting, but mypaint doesn't preserve it, it will be lost anyway.
Comment 2 Alan Horkan 2015-04-23 15:42:34 UTC
FWIW I went ahead and added this feature to my version of the OpenRaster plugin for the Gnu Image Manipulation program. 
https://gitorious.org/openraster/gimp-plugin-file-ora/

based on the tag "edit-locked" already included in the OpenRaster specification and the suggestions in the specification to use tags of the form *-locked
http://www.freedesktop.org/wiki/Specifications/OpenRaster/Draft/LayerEditLockingStatus/
... I chose the attribute tag "alpha-locked"
Comment 3 Halla Rempt 2016-01-24 15:51:06 UTC
WISHGROUP: Small Usability Fixes