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[0].Name;
var xy = ps.Layers[0].Location;

I needed to include these references:

Answers


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/


Need Your Help

Regex pattern with subpattern exceptions (Python)

python regex web-scraping

I am using BeautifulSoup to extract tabledata tags from a table. The TD's have a class of either 'a','u','e','available-unavailable' or 'unavailable-available'. (Yes, I know quirky class names but

How can I alter an indexed varchar(255) from utf8 to utf8mb4 and still stay under the 767 max key length?

mysql utf-8 indexing utf8mb4

I have an mysql column that needs to support emoji, and that means converting a utf8 column into a utf8mb4. But my varchar(255) won't fit, so long as the column is indexed (not unique).