Author Topic: Shrink your PNGs  (Read 5612 times)

pyrozen

  • *
  • Posts: 791
  • Team Avalanche Member
    • View Profile
Shrink your PNGs
« on: 2010-11-03 22:07:36 »
While investigating various methods to compress PNG files so newer mods can be more easily downloaded, i stumpled across this nifty program.
http://benhollis.net/software/pnggauntlet/

nearly lossless compression of PNGs, i had success in decreasing the total size of the WMRP by around 12%(10MB) using the slowest algorithim. Not to shabby and they still look the same ingame. Just thought i would share this with anyone who is making massive mods similar to TA that have massive installers.

lee

Covarr

  • Covarr-Let
  • Administrator
  • *
  • Posts: 3941
  • Just Covarr. No "n".
    • View Profile
Re: Shrink your PNGs
« Reply #1 on: 2010-11-03 22:20:28 »
How does this program compare to OptiPNG? I mean, obviously, OptiPNG is lossless, which itself makes a difference, but do you think perhaps it may be wise to use them both in tandem?

Kranmer

  • *
  • Posts: 766
    • View Profile
Re: Shrink your PNGs
« Reply #2 on: 2010-11-03 22:30:29 »
well PNGGauntlet does give slightly better compression then OptiPNG and it also uses lossless compression (if selected), but its basicly a frontend for PNGOUT
http://en.wikipedia.org/wiki/PNGOUT
The results in compression are quite close to OptiPNG, i tested with a 628kb PNG and with PNGGauntlet i got a 398kb and with OptiPNG i got a 401kb file, but the major difference is that PNGGaunlet can compress 32bit PNG's, if you try with OptiPNG it converts it to 24bit (well this happens to me but if anyone else doesnt have this problem it could just be me)

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: Shrink your PNGs
« Reply #3 on: 2010-11-03 22:31:06 »
Question:

Why is this in tech related?

pyrozen

  • *
  • Posts: 791
  • Team Avalanche Member
    • View Profile
Re: Shrink your PNGs
« Reply #4 on: 2010-11-04 02:26:27 »
Question:

Why is this in tech related?
seemed appropiate to me since it was directly related to the "tech" behind most of the mods that are being released.

also, i re-compressed the WMRP files with a different method, and i manged to get the total to go from 90MB, down to 67MB. Pretty sweet!

lee

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Shrink your PNGs
« Reply #5 on: 2010-11-04 14:22:55 »
Hang on a second... if you are compressing a png losslessly with so much success, doesn't that mean PNG algorithm is fundamentally flawed?

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Shrink your PNGs
« Reply #6 on: 2010-11-04 17:25:16 »
Hang on a second... if you are compressing a png losslessly with so much success, doesn't that mean PNG algorithm is fundamentally flawed?

Not necessarily. If it's faster to read before compression (it usually is) then it's usually considered to be more efficient. It's about balancing size vs speed.

pyrozen

  • *
  • Posts: 791
  • Team Avalanche Member
    • View Profile
Re: Shrink your PNGs
« Reply #7 on: 2010-11-04 19:41:27 »
one thing i can note about this, i dont really notice any difference when ingame.

Also, once you compress them with this tool, you simply cannot gain anything by putting the images into an archive of any type, regardless of compression. However, a maximum compression ZIP got me to only 83MB, while this method put me down to 76MB.

lee

Aali

  • *
  • Posts: 1196
    • View Profile
Re: Shrink your PNGs
« Reply #8 on: 2010-11-05 01:35:11 »
Watch out for bit depth reductions, some of these tools can do them even in a lossless manner but the driver will not take anything other than 24- and 32-bit PNGs.

Timber

  • *
  • Posts: 386
    • View Profile
Re: Shrink your PNGs
« Reply #9 on: 2010-11-05 03:01:28 »
nearly lossless compression of PNGs, i had success in decreasing the total size of the WMRP by around 12%(10MB) using the slowest algorithim.

Nearly lossless? No thanks :P
I'm sure most people won't mind downloading 12% more to ensure good quality.
It's not like file hosting or hdd space is an issue these days.

Aali

  • *
  • Posts: 1196
    • View Profile
Re: Shrink your PNGs
« Reply #10 on: 2010-11-05 03:32:16 »
If the end result is not worse than what is going to be displayed, why not? I assume that almost everyone is using texture compression, that leaves your high-quality .png to be displayed exactly one times before it gets replaced by a very lousy but very very fast compression algorithm that doesn't come anywhere near "lossless".

sl1982

  • Administrator
  • *
  • Posts: 3764
  • GUI Master :P
    • View Profile
Re: Shrink your PNGs
« Reply #11 on: 2010-11-05 10:40:35 »
Personally i do not use texture compression, but i think it is good to have the best possible source to create that compressed texture from.

Bosola

  • Fire hazard!
  • *
  • Posts: 1752
    • View Profile
    • My YouTube Channel
Re: Shrink your PNGs
« Reply #12 on: 2010-11-05 10:47:10 »
Hang on a second... if you are compressing a png losslessly with so much success, doesn't that mean PNG algorithm is fundamentally flawed?

Compression algorithms are all about the art of compromise. Speed, quality, compression - pick two. This algorithm isn't lossless. It's gaining a little in column 3 at the cost of column 2.