freeotp / freeotp-ios

Apache License 2.0
687 stars 174 forks source link

Extremely optimize PNG image assets losslessly #362

Closed PeterDaveHello closed 4 months ago

PeterDaveHello commented 4 months ago

Use Google's zopflipng for extreme lossless optimization.

This optimization significantly reduced PNG file sizes while maintaining image quality.

Compression results:

FreeOTP/Assets.xcassets/AppIcon.appiconset/120.png             | Bin 18833 -> 12008 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/152.png             | Bin 21539 -> 15958 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/167.png             | Bin 24120 -> 17918 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/20.png              | Bin 1294 -> 945 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/29.png              | Bin 2333 -> 1686 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/40-1.png            | Bin 3660 -> 2671 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/40-2.png            | Bin 4191 -> 2671 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/40.png              | Bin 3660 -> 2671 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/58.png              | Bin 6174 -> 4536 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/60.png              | Bin 7486 -> 4662 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/80.png              | Bin 9471 -> 6985 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/87.png              | Bin 12611 -> 7880 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/icon120.png         | Bin 10686 -> 6755 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/icon180.png         | Bin 16776 -> 10691 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/icon58.png          | Bin 4906 -> 3209 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/icon76.png          | Bin 6038 -> 3883 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/icon80.png          | Bin 6039 -> 4240 bytes
FreeOTP/Assets.xcassets/AppIcon.appiconset/store.png           | Bin 125424 -> 83084 bytes
FreeOTP/Assets.xcassets/SplashIcon.imageset/splash-icon.png    | Bin 14467 -> 11017 bytes
FreeOTP/Assets.xcassets/SplashIcon.imageset/splash-icon@2x.png | Bin 34771 -> 25201 bytes
FreeOTP/Assets.xcassets/SplashIcon.imageset/splash-icon@3x.png | Bin 56960 -> 40787 bytes
FreeOTP/default.png                                            | Bin 125424 -> 83084 bytes
FreeOTP/lock.png                                               | Bin 1020 -> 1003 bytes
FreeOTP/qrcode.png                                             | Bin 350 -> 180 bytes
FreeOTP/token.png                                              | Bin 27060 -> 18906 bytes
justin-stephenson commented 4 months ago

Thank you for the PR. Could you please remove the Compression results from the commit message @PeterDaveHello

PeterDaveHello commented 4 months ago

@justin-stephenson sure, it's done.