EasyBatch Tip: Reducing file size of PNG’s
January 4th, 2009
This is something I actually used EasyBatch for myself earlier today. Often times graphic images are saved with lots of ‘extra’ data that we don’t need. For instance, depending on what image editors you use, and what your settings are, some images might be saved with all kinds of extra stuff, like:
- Author/keyword info
- A resource fork
- Extra metadata
- Preview / file icons
Sometimes we need these things. But often times they amount to bloating. For instance, in BravoBug’s most current software project, I have a large number of PNG’s which are used internally by the app. In this case I need none of the above stuff. I just need the raw image data. And yet when I would save out a .PNG in Photoshop, I found even a 2×2 pixel image was 28 kilobytes in size! Far too large.
Now, I could fiddle with my Photoshop settings, but I already had nearly 100 PNG’s that had been saved. And there’s a much easier way of getting rid of much of this wasted space.
You can use EasyBatch to strip out a great deal of this unwanted data from your files. (Note: if you really want to get serious about reducing file size, you should take a look at PNGCrush).
To strip a folder of .PNG’s of all this bloating, just run an EasyBatch with no modifications. That is:
- Select your folder of PNG’s for EasyBatch’s input
- Disable everything (resizing, rotation, color changes, etc.)
- Select PNG as the output format, and choose a save folder
Now click run. Essentially what EasyBatch will do is just open up the original PNG and re-save a copy. But in the process it will avoid re-writing all of that extra junk that you didn’t need. I found that the 2×2 PNG I saved in Photoshop, which was originally 28k, was now down to a much more reasonable 623 bytes.
One caveat: EasyBatch will re-save with the current monitor color profile settings, so if your color profile must be retained, you shouldn’t use EasyBatch on those files. But otherwise, give it a shot on your PNGs and see how much space you can save!
Here’s a quick OS X tip for those of you who like to dive into the terminal from time to time. This is an easy way to move all of the files of a particular type (say, a bunch of images on your desktop, perhaps?) into the trash can. This is handy because it’s powerful, easy, and less frightening than using ‘rm’ which instantly (and permanently) deletes the file.
This was a task in Cocoa development that was new to me. In MiLife I provided a customized FAQ document separate from the standard help, and in EasyBatch it opens the web-based FAQ.



