Implement layer locking read/write in the PSD format

Layer locking in PSD is stored in the "Protected Setting" Additional Layer Information, under key "lspf". It is one of the undocumented flags, bit (1 << 31).

This information was found in the psd-tools Python module: https://github.com/psd-tools/psd-tools/blob/1e0cdeba3f7e536187f34a433fa48f4029ad776a/src/psd_tools/constants.py#L588

Test file generated in Photoshop: test_lock_layer_from_ps.psd

Example result when opening a psd file with some locked layers:

master PR
Screenshot_20260913_012051 image

Merge request reports

Loading
Loading