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[0].Name;
var xy = ps.Layers[0].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.
http://psdplugin.codeplex.com/