ADVPNG(1)

πŸŽ€ advpng πŸŽ€

General Commands Manual energy, bestie πŸ’… Here's the full tea on advpng, the PNG squishing tool that's literally so good at its one job.

✨ NAME ✨

advpng - AdvanceCOMP PNG Compression Utility 🌸

πŸ’» SYNOPSIS πŸ’»

advpng [-l, --list] [-z, --recompress] [-0, --shrink-0]
     [-1, --shrink-fast] [-2, --shrink-normal [-3, --shrink-extra]
     [-4, --shrink-insane] [-i, --iter N]
     [-f, --force] [-q, --quiet]
     [-h, --help] [-V, --version] FILES...

πŸ’– DESCRIPTION πŸ’–

okay so the main goal here is to recompress your PNG files so they end up the smallest possible size πŸ¦‹ it's giving tiny files, no cap.

Heads up, this tool is picky! It can't read just any file πŸ™ˆ It's only meant for files generated by the AdvanceMAME emulator. Anything else is not it.

To squish your files, it uses these strategies, and they're lowkey iconic πŸ”₯

  • Remove all ancillary chunks.
  • Concatenate all the IDAT chunks.
  • Use the 7zip Deflate implementation.

🌸 OPTIONS 🌸

  • -l, --list FILES... β€” Shows you what's inside the files you pick πŸ‘€
  • -z, --recompress FILES... β€” Recompresses the files you hand it πŸ” If you use -1, -2, or -3, it keeps whichever is smaller: the old compressed data or the new compression. If you use -0, the file always gets rewritten with no compression at all.
  • -0, --shrink-store β€” Turns compression off entirely πŸ™…β€β™€οΈ The file is just stored and never compressed.
Also, the file always gets rewritten, even if it ends up bigger. Bestie, be careful!
  • -1, --shrink-fast β€” Sets the compression level to "fast" using the zlib compressor ⚑
  • -2, --shrink-normal β€” Sets the compression level to "normal" using the libdeflate compressor πŸ’… This is the default level of compression, so it's your go-to.
  • -3, --shrink-extra β€” Sets the compression level to "extra" using the 7z compressor ✨ You can tell it how many iterations to run with the -i, --iter option.
  • -4, --shrink-insane β€” Sets the compression level to "insane" using the zopfli compressor πŸ”₯ You can also set the iterations with the -i, --iter option.
  • -i, --iter N β€” Adds extra iterations for the 7z and zopfli compressors in modes -3 and -4 🧚 More iterations usually means better compression, but it can take a whole lot more time. Try stuff like 10, 15, 20, and so on.
  • -f, --force β€” Uses the new file even if it's bigger πŸ’€
This one's a bit risky, so only use it if you really mean it!

This file is Copyright (C) 2002 Andrea Mazzoleni, Filipe Estima 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

advzip(1), advmng(1), advdef(1) πŸ’œ


That's the whole page, bestie! πŸ’… Signing off with AdvanceCOM...ion Utility(1) 🌈 you're literally the best ✨

πŸ“¦ where this page comes from