Extracting layers from Paint.NET

Is there a way to automatically save layers as separate image files from a Paint.NET (pdn) file?

For example, if I have 5 layers in a pdn file, I would like to save them as 5 separate .png files.


Paint.NET doesn't seem to be able to do this natively. Take a look at the utilities on this page:
http://www.comsquare.ch/index.php?option=com_content&task=view&id=36&Itemid=55

Specifically, pdn2png can save each layer into a separate file with the /split option, like so:

pdn2png /split yourfile.pdn

Alternatively, for something with a graphical interface, try this:
http://forums.getpaint.net/index.php?showtopic=9704

I did a quick test with a 2-layer PDN file, and both seem to work as advertised.


Unfortunatelly Layer Saver from this link http://forums.getpaint.net/index.php?showtopic=9704 does NOT work with Paint.Net 4.0 and above.. But pdn2png from http://comsquare.dynvpn.de/forums/viewtopic.php?f=23&t=64&sid=871b9b812347c2a654cf00cb1e02352c works well!