Photoshop: Export Layers to Files (Fast PNG version)
Adobe Photoshop comes with a script called "Export Layers to Files" which saves each layer in the current document to a separate file. In a recent version of Photoshop you could find this under File -> Scripts.
I have taken the version of this script that comes with Photoshop CS3 and modified it to add two new features:
Photoshop CS4 users: CS4 comes with an updated version of the original script which adds PNG support. I have not had a chance to look at it much yet but it looks better than my version of the CS3 script. So, if you have CS4, try the official script first. If I get time I'll see if it's worth adding a "fast mode" to the CS4 script or if such modifications are no longer needed.
I have only tested the script in Photoshop CS3 on Windows but it should work with the OS X version as well. I don't know if it will work in older versions of Photoshop.
To run the script, first extract the Export Layers To Files - (Fast PNG version).jsx file from the zip to somewhere sensible and then, in Photoshop, select File -> Scripts -> Browse... and then choose the .jsx file you just saved.
You can also copy the script to your scripts folder so that it appears in the Scripts menu directly the next time you start Photoshop. On Windows the folder is C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts.
The original version of the script is not changed so you can go back to it if you find a problem in my modified version.
I hope Adobe don't mind me sharing my version of the script here. I figure these changes may be useful to other people but it's still their script and my modifications are quite minor. Here is the original copyright and credits for the script:
Copyright 2007. Adobe Systems, Incorporated. All rights reserved.
3rd June 2007
I get a surprising (to me) amount of email about this script, much of which I haven't found the time to answer. I apologise for that. My email link is in the footer below but please don't feel bad if I don't reply for a long time.