Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lossless optimization of .png files using OptiPNG #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Brianum
Copy link

@Brianum Brianum commented Feb 2, 2025

optipng -o7 -nb -nc -strip all

@Ghabry
Copy link
Member

Ghabry commented Mar 27, 2025

Thanks for the PR. I will revisit this one when the new assets that were recently submitted are in.

@Ghabry
Copy link
Member

Ghabry commented Mar 28, 2025

I compared this now with advpng -z4.

For advpng I get:

-rw-r--r-- 1 gabriel gabriel 14024 28. Mär 17:36 Actor1.png
-rw-r--r-- 1 gabriel gabriel 13713 28. Mär 17:36 Actor2.png
-rw-r--r-- 1 gabriel gabriel 12431 28. Mär 17:36 Actor3.png
-rw-r--r-- 1 gabriel gabriel 12353 28. Mär 17:36 Actor4.png
-rw-r--r-- 1 gabriel gabriel  7536 28. Mär 17:36 Animal.png
-rw-r--r-- 1 gabriel gabriel 11543 28. Mär 17:36 Monster1.png
-rw-r--r-- 1 gabriel gabriel 19878 28. Mär 17:36 Monster2.png
-rw-r--r-- 1 gabriel gabriel 18998 28. Mär 17:36 Monster3.png
-rw-r--r-- 1 gabriel gabriel  5570 28. Mär 17:36 Object1.png
-rw-r--r-- 1 gabriel gabriel  3907 28. Mär 17:36 Object2.png
-rw-r--r-- 1 gabriel gabriel 10416 28. Mär 17:36 People1.png
-rw-r--r-- 1 gabriel gabriel 12776 28. Mär 17:36 People2.png
-rw-r--r-- 1 gabriel gabriel 11933 28. Mär 17:36 People3.png
-rw-r--r-- 1 gabriel gabriel 10504 28. Mär 17:36 People4.png
-rw-r--r-- 1 gabriel gabriel 10889 28. Mär 17:36 People5.png
-rw-r--r-- 1 gabriel gabriel  3760 28. Mär 17:36 template.png
-rw-r--r-- 1 gabriel gabriel 10767 28. Mär 17:37 Vehicles2.png
-rw-r--r-- 1 gabriel gabriel 16339 28. Mär 17:37 Vehicles.png

For optipng -o7 -nb -nc -strip all I get.

-rw-r--r-- 1 gabriel gabriel 15449 28. Mär 17:36 Actor1.png
-rw-r--r-- 1 gabriel gabriel 15169 28. Mär 17:36 Actor2.png
-rw-r--r-- 1 gabriel gabriel 13618 28. Mär 17:36 Actor3.png
-rw-r--r-- 1 gabriel gabriel 13703 28. Mär 17:36 Actor4.png
-rw-r--r-- 1 gabriel gabriel  8566 28. Mär 17:36 Animal.png
-rw-r--r-- 1 gabriel gabriel 12893 28. Mär 17:37 Monster1.png
-rw-r--r-- 1 gabriel gabriel 21893 28. Mär 17:37 Monster2.png
-rw-r--r-- 1 gabriel gabriel 21060 28. Mär 17:37 Monster3.png
-rw-r--r-- 1 gabriel gabriel  5570 28. Mär 17:36 Object1.png
-rw-r--r-- 1 gabriel gabriel  4436 28. Mär 17:37 Object2.png
-rw-r--r-- 1 gabriel gabriel 11530 28. Mär 17:37 People1.png
-rw-r--r-- 1 gabriel gabriel 14113 28. Mär 17:37 People2.png
-rw-r--r-- 1 gabriel gabriel 13118 28. Mär 17:37 People3.png
-rw-r--r-- 1 gabriel gabriel 11498 28. Mär 17:37 People4.png
-rw-r--r-- 1 gabriel gabriel 11962 28. Mär 17:37 People5.png
-rw-r--r-- 1 gabriel gabriel  4201 28. Mär 17:37 template.png
-rw-r--r-- 1 gabriel gabriel 10767 28. Mär 17:36 Vehicles2.png
-rw-r--r-- 1 gabriel gabriel 17714 28. Mär 17:37 Vehicles.png

So advpng compresses better (but is still losless compression) so I will continue using this.

Thanks for reminding though that the files lack optimisation :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants