You’re making a game, and you know what platform you are aiming to release the game on. You wipe out all the audio for the other platform…. And your game is still too big? Whaa? How does that happen? You’ve even emptied out the unused animations from the database! I know I’ve asked myself, “just what is in this game anyway?”
Well, your game, my game, and those folks over there too are in the same boat. Use overlays? Plugins? Parallax? It simply doesn’t matter, all of us have a collection of PNG images. Go ahead, right click on your “IMG” folder in one of your projects, and select properties. Check out the size of that thing! Obviously, getting rid of unused images will help, but what if there was something more you could do?
I wouldn’t have started writing this if there wasn’t. It’s time to optimize those images. The PNG format stores a variety of data, from headers and metadata to pallets that can all be tweaked. All of them can get some level of compression on them, and some can see as much as a 70% size reduction. So, the trick comes down to the tools.
Google for PNG optimization, and you’ll get results for all the webmasters out there who use PNGs on their websites. There’s TinyPNG, OPtimizePNG, ezgif, and a host of others. Most of them have a daily and/or a monthly limit; then, they charge for it. (They then pay Google for a higher position on results pages to catch more hapless victims!) Not terribly useful for a game that has 400M of sprite-sheets, face images, and busts. We need a tool.
Luckily, there are several, and they’re free. I’ll list them below, but I use Psydk’s PngOPtimizer (actually the PortableApps version of it). All you have to do is get one, and then use the chosen app to reduce your filesizes. You will have to test your game before distributing it, because sometimes any of the optimization software can misinterpret data and introduce an error. However, most of the tools available will create a backup of the original (PngOptimizer creates a duplicate file with a leading underscore in the same directory).
Once you’ve tested your game, delete the extra files. You will usually find about a 25 % - 33% total reduction in the size of your IMG directory. This is before any RAR or ZIP compression. Make sure to read the instructions for whichever optimizer you choose!
Small List of PNG Optimizing Software
NOTE: I will NOT link to any online optimizer services, as they are basically rip-offs.
Well, your game, my game, and those folks over there too are in the same boat. Use overlays? Plugins? Parallax? It simply doesn’t matter, all of us have a collection of PNG images. Go ahead, right click on your “IMG” folder in one of your projects, and select properties. Check out the size of that thing! Obviously, getting rid of unused images will help, but what if there was something more you could do?
I wouldn’t have started writing this if there wasn’t. It’s time to optimize those images. The PNG format stores a variety of data, from headers and metadata to pallets that can all be tweaked. All of them can get some level of compression on them, and some can see as much as a 70% size reduction. So, the trick comes down to the tools.
Google for PNG optimization, and you’ll get results for all the webmasters out there who use PNGs on their websites. There’s TinyPNG, OPtimizePNG, ezgif, and a host of others. Most of them have a daily and/or a monthly limit; then, they charge for it. (They then pay Google for a higher position on results pages to catch more hapless victims!) Not terribly useful for a game that has 400M of sprite-sheets, face images, and busts. We need a tool.
Luckily, there are several, and they’re free. I’ll list them below, but I use Psydk’s PngOPtimizer (actually the PortableApps version of it). All you have to do is get one, and then use the chosen app to reduce your filesizes. You will have to test your game before distributing it, because sometimes any of the optimization software can misinterpret data and introduce an error. However, most of the tools available will create a backup of the original (PngOptimizer creates a duplicate file with a leading underscore in the same directory).
Once you’ve tested your game, delete the extra files. You will usually find about a 25 % - 33% total reduction in the size of your IMG directory. This is before any RAR or ZIP compression. Make sure to read the instructions for whichever optimizer you choose!
Small List of PNG Optimizing Software
- PngOPtimizer (the one I use): http://psydk.org/pngoptimizer
- PNGGauntlet (newer software, requires .NET): https://pnggauntlet.com/
- OptiPNG (they have a nice write up on PNG itself): http://optipng.sourceforge.net/
NOTE: I will NOT link to any online optimizer services, as they are basically rip-offs.

