Bug 336857 - Krita doesn't save the 'alpha-lock' status of layer inside *.ora xml stack
Summary: Krita doesn't save the 'alpha-lock' status of layer inside *.ora xml stack
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 2.8.3
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-29 08:08 UTC by David REVOY
Modified: 2016-01-24 15:51 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 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