You are here

App compactor suggestion (optipng to crush PNG filesizes)

4 posts / 0 new
Last post
mortgat
Offline
Last seen: 8 years 3 weeks ago
Joined: 2010-02-19 03:36
App compactor suggestion (optipng to crush PNG filesizes)

Hello,

I ran into appcompactor and found it easy to use upx gui.

I am wondering whether it would be suitable or not to include optipng inside it; that software is designed to minimize the size of portable network graphics without any loss of detail.

under windows in a batch file I can do
for /r . %%G in (*.png) do optipng -o7 %%G

under linux, find . -iname "*.png" -exec optipng -o7 {} \;

It works pretty well and can be useful to reduce even more the size of some portable apps.

Have a nice day and thanks for offering that application,

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 25 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Decided Against

We considered that a while ago but decided against it. It actually modifies PNGs in such a way that it breaks the ability for some apps to use them. And it doesn't save a ton of space in most apps. If you have an app with one or two large PNGs, you can still try it manually, though.

Sometimes, the impossible can become possible, if you're awesome!

Bruce Pascoe
Offline
Last seen: 12 years 2 months ago
Joined: 2006-01-15 16:14
To be fair

To be completely fair here, UPX breaks some apps, too. So does that mean PNG recompression break a larger percentage of apps than UPX does?

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 25 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Difference

The difference is that UPX compression has a really low incidence of breaking apps and we have it check to ensure it properly compressed it after doing so (if not, it changes it back). Even if it causes an issue, it can easily be un-UPXed.

PNG compression permanently alters a piece of the app and has caused apps to be unable to load their PNG files on more than one occasion in testing when the app didn't fully support the PNG spec. And PNG compression doesn't really save much space at all.

ZIP/JAR recompression can also cause an issue, but we've found that that is rare, and it saves quite a bit of space on many apps.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments