diff --git a/content/posts/2023/pngcrush.md b/content/posts/2023/pngcrush.md new file mode 100644 index 0000000..fbf3de4 --- /dev/null +++ b/content/posts/2023/pngcrush.md @@ -0,0 +1,29 @@ +--- +title: "πŸ–ΌοΈ pngcrush β€” инструмСнт для ΠΎΠΏΡ‚ΠΈΠΌΠΈΠ·Π°Ρ†ΠΈΠΈ сТатия PNG-Ρ„Π°ΠΉΠ»ΠΎΠ²" +date: 2023-09-30T20:44:15+03:00 +draft: false +tags: [tools, images] +--- + +`pngcrush` β€” Tool for optimizing the compression of PNG files. +`pngcrush` β€” Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для ΠΎΠΏΡ‚ΠΈΠΌΠΈΠ·Π°Ρ†ΠΈΠΈ сТатия PNG-Ρ„Π°ΠΉΠ»ΠΎΠ². +URL: http://pmt.sourceforge.net/pngcrush. + +ΠŸΠ°ΠΊΠ΅Ρ‚ Π΅ΡΡ‚ΡŒ Π² рСпозиториях `Arch` ΠΈ `Ubuntu`. + +**ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹ ΡƒΡ‚ΠΈΠ»ΠΈΡ‚Ρ‹:** + +```sh +pngcrush -brute jfxr.png jfxr2.png +``` + +```text +Warning: versions are different between png.h and png.c + png.h version: 1.6.37 + png.c version: 1.6.40 + + Recompressing IDAT chunks in jfxr.png to jfxr2.png + Total length of data found in critical chunks = 118940 + Best pngcrush method = 7 (ws 15 fm 0 zl 9 zs 0) = 84876 +CPU time decode 4.074774, encode 11.337994, other 0.100056, total 15.764133 sec +```