Author Topic: PNGGauntlet  (Read 25867 times)

0 Members and 1 Guest are viewing this topic.

Offline KingKuros

  • Full Member
  • ***
  • Posts: 144
PNGGauntlet
« on: May 18, 2007, 07:53:20 pm »
I just downloaded and installed the PNGGauntlet.  Before I try it, I want to ask something.  How should I set the PNGOut options?  How is yours set?

Offline JonLeung

  • Administrator
  • *****
  • Posts: 3690
RE: PNGGauntlet
« Reply #1 on: May 18, 2007, 10:18:27 pm »
I just check "Brute Force Compression" on.

Offline RT 55J

  • Sr. Member
  • ****
  • Posts: 450
RE: PNGGauntlet
« Reply #2 on: May 18, 2007, 11:53:45 pm »
Be warned. It takes a very long time.

---

Dot? Dot. Dot!


Offline JonLeung

  • Administrator
  • *****
  • Posts: 3690
RE: PNGGauntlet
« Reply #3 on: May 19, 2007, 07:55:43 am »
I think it depends not only on the speed and memory of your computer, but on how "compressible" the original image is.  I've seen large files go through very quickly (as in, seconds) and not compress much, while other large files take all day but they compress a lot more.

Offline DarkWolf

  • Hero Member
  • *****
  • Posts: 640
RE: PNGGauntlet
« Reply #4 on: May 19, 2007, 09:43:03 am »
I'm not looking forward to running through the Faery Tale Adventure world map through PNGGauntlet.

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
RE: PNGGauntlet
« Reply #5 on: September 09, 2007, 11:54:46 pm »
Something I recently realised:



PNG images have a "filter" setting to try to get better compression. A filter is run over the image before compression to try to make it more compressible; there are 5 filters available.



For paletted images, PNGOut assumes that filter 0 (no filter) will do best because it seems to go well with pixelly images and images with a small number of colours. For true-colour 24-bit images, PNGOut assumes filter 5 (mixed) will work best because true-colour images are generally photographic and thus have smooth colour gradation and a large number of colours.



However, game maps generally aren't photographic and generally have less than a thousand different colours. Thus, if your map contains more than 256 colours, it'll probably compress a lot better if you override PNGOut's filter selection by using the "/f0" parameter.



Example:



D:\Desktop\Maps>pngout "Wolfenstein3-D-Episode2-Floor1.png"

 In: 1503058 bytes               Wolfenstein3-D-Episode2-Floor1.png /c2 /f5

Out: 1336510 bytes               Wolfenstein3-D-Episode2-Floor1.png /c2 /f5

Chg: -166548 bytes ( 88% of original)



D:\Desktop\Maps>pngout "Wolfenstein3-D-Episode2-Floor1.png" /f0

 In: 1336510 bytes               Wolfenstein3-D-Episode2-Floor1.png /c2 /f5

Out:  961513 bytes               Wolfenstein3-D-Episode2-Floor1.png /c2 /f0

Chg: -374997 bytes ( 72% of original)



Filter 0 cut an extra 366KB from a 1305KB image.

Offline TerraEsperZ

  • Hero Member
  • *****
  • Posts: 2326
RE: PNGGauntlet
« Reply #6 on: July 30, 2008, 10:34:28 pm »
A new version of PNGGauntlet is now available as well as a new version of PNGOut which it requires, and maybe it's just me, but I'm absolutely unable to reduce the bit depth anymore and always end up with 24 bit colors even if the image has less than 256 colors. JonLeung, you'd better try it out before adopting it completely just in case.



---

Current projects: Ristar-The Shooting Star (Gen), Sonic The Hedgehog (Gen), Sonic CD (Sega CD), Mega Man Zero (GBA), Battletoads (NES), Bucky O'Hare (NES)
Current project:
Mega Man: Powered Up (PSP)

Offline Maxim

  • Hero Member
  • *****
  • Posts: 974
RE: PNGGauntlet
« Reply #7 on: July 31, 2008, 02:48:37 am »
It seems PNGGauntlet is buggy - it is only running PNGOUT once, and ignoring your colour depth settings. I suggest avoiding it and/or contacting the author with a few sample images.

Personally, I just do pngout /c3 /d0 and it's usually the best. For images that are more than 256 colours, pngout /f0. Worst case, run both - PNGOUT will keep the smallest.
« Last Edit: April 09, 2010, 12:01:10 am by Maxim »