EmilDohne / PhotoshopAPI

A modern and performant C++20 read/write parser of Photoshop Files (*.psd and *.psb) with fully fledged Python bindings hosted on PyPi
https://photoshopapi.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
94 stars 9 forks source link

Add Unicode layer name support #82

Closed EmilDohne closed 2 months ago

EmilDohne commented 3 months ago

Currently when reading a photoshop file we only parse the ascii layer name representation which is the layer name stored on the layer records.

There is however also the luni Tagged block which would add support for unicode layer names.

The behaviour should then be that the layer name always chooses the unicode name (if available) and otherwise defaults to the Pascal String ascii version.

Both of these layer names should be retrievable if wanted though through a function like

Layer<T>::getUnicodeLayerName() and Layer<T>::getASCIILayerName()