How can I get the layers from a PSD file?
I want to retrieve all layers from a PSD file and get their name, X and Y position.
Is there a C# Lib that can do that?
I've tried this lib from CodeProject, but I always get TargetInvokeException. My PSD files are from Photoshop CS5...
Exploring Paint.NET as Robin suggested I could get to this code:
var ps = new PsdFile(); ps.Load(file); var name = ps.Layers.Name; var xy = ps.Layers.Location;
I needed to include these references:
You could use the PSD-plugin for Paint.NET to do it.
Should be fairly easy to extract the parser library from there.