As a flash programmer or designer, you must run into this as wel. You have a big pile of png’s with transparency. You want to crop them to have as minimum transparency as possible (while maintaining the 1px transparent border).
Now here’s a tool for ya, which I created in AIR with Flex. Select a dir with PNG’s, then an output dir and off you go. It even outputs the crop positions (left, top, right, bottom) for you in a textfile.
This has no error handling yet, I’m just too lazy to build that. Here’s the full code. All up to you from here ;-) Oh, you need the as3corelib from Adobe for PNG encoding purpose.
update: Here’s the compiled air file for direct install (you’ll need to have AIR installed)

