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,--listFILES... β Shows you what's inside the files you pick π-z,--recompressFILES... β 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,--iteroption.-4,--shrink-insaneβ Sets the compression level to "insane" using the zopfli compressor π₯ You can also set the iterations with the-i,--iteroption.-i,--iterN β Adds extra iterations for the 7z and zopfli compressors in modes-3and-4π§ More iterations usually means better compression, but it can take a whole lot more time. Try stuff like10,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!
π§ COPYRIGHT π§
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
- alpine 3.24: advancecomp-doc 2.6-r0 Β· GPL-3.0-or-later
- debian bookworm: advancecomp 2.5-1
- debian trixie: advancecomp 2.5-1
- epel 10: advancecomp 2.6-8.el10_0 Β· GPL-3.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- epel 9: advancecomp 2.6-4.el9 Β· GPL-3.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 43: advancecomp 2.6-13.fc43 Β· GPL-3.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: advancecomp 2.6-16.fc44 Β· GPL-3.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: advancecomp 2.6
- nixpkgs unstable: advancecomp 2.6
- ubuntu jammy: advancecomp 2.1-2.1ubuntu2
- ubuntu jammy: advancecomp 2.1-2.1ubuntu2.1
- ubuntu noble: advancecomp 2.5-1build1
- ubuntu resolute: advancecomp 2.5-1build2
- ubuntu stonking: advancecomp 2.5-1build2
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms