OK, I misread the tweet and thought there were 111 seconds (honest!). Still, that was fun. I’m almost tempted to dig out my Perl cookbook to see what else could possibly be crammed in 140 characters. Almost.
This small commandline tool by Andi McClure takes your png files and transforms them in interesting ways. It’s available in source form on bitbucket, you can get a ready-to-use version here, bundled with a small howto (which is reposted below; hopefully it makes sense, let me know if you have problems with it).
But first some samples of what it can do:
1) Unzip the folder somewhere, you’ve probably already done this if you are reading this :). I suggest putting the folder as near as possible to the root of your hard drive. For instance, mine is in c:\tools.
2) Open a windows command prompt, it’s somewhere in your start menu. If you can’t find it, you can also launch it by pressing the Windows key and ‘R’, and typing “cmd.exe” in the box that appears.
3) Type “cd”, a space, then the full path of the badpng folder. If the path includes spaces, you have to put it between double quotes, otherwise windows will get confused. That’s where it pays to have short, space-less paths for those tools. Here’s what it looks like on my machine:
Press return and you’re inside the badpng folder.
4) Now all you have to is launch badpng with the path of your source image, and the path of the saved image. It looks like this: