PSDLayerNameParser 0.1.0

Build layer and layer group tree fron psd file.
Correspond to the layer name of Japanese.

Install-Package PSDLayerNameParser -Version 0.1.0
dotnet add package PSDLayerNameParser --version 0.1.0
<PackageReference Include="PSDLayerNameParser" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PSDLayerNameParser --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PSDLayerName Parser

PSDLayerNameParser is a PSD layer and layer group parser.
It corresponds to the unicode layer name.

How to get

How to use

// rootElement is a root node. It doesn't have Name.
var rootElement = Parser.Parse("./TestData.psd");

// Get a layers and layer groups tree as a json string.
rootElement.Serialize();  // return {"Children": [{"Children": [{"Children": [],"IsGroup": false,"Name": "Layer1-1"},{"Children": [],"IsGroup": false,"Name": "Layer1-2"}],"IsGroup": true,"Name": "Group1"},{"Children": [],"IsGroup": false,"Name": "日本語のレイヤー"}],"IsGroup": true,"Name": ""}

// Get children of root element or layer group element.
rootElement.GetChildren();  // return LayerElement[]

var firstChild = rootElement.GetChild(0);
// Get layer or layer group name.
firstChild.Name;
// Get a flag indicating whether it is a group layer or not.
firstChild.IsGroup;

PSDLayerName Parser

PSDLayerNameParser is a PSD layer and layer group parser.
It corresponds to the unicode layer name.

How to get

How to use

// rootElement is a root node. It doesn't have Name.
var rootElement = Parser.Parse("./TestData.psd");

// Get a layers and layer groups tree as a json string.
rootElement.Serialize();  // return {"Children": [{"Children": [{"Children": [],"IsGroup": false,"Name": "Layer1-1"},{"Children": [],"IsGroup": false,"Name": "Layer1-2"}],"IsGroup": true,"Name": "Group1"},{"Children": [],"IsGroup": false,"Name": "日本語のレイヤー"}],"IsGroup": true,"Name": ""}

// Get children of root element or layer group element.
rootElement.GetChildren();  // return LayerElement[]

var firstChild = rootElement.GetChild(0);
// Get layer or layer group name.
firstChild.Name;
// Get a flag indicating whether it is a group layer or not.
firstChild.IsGroup;

  • .NETCoreApp 2.1

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.0 144 2/19/2019