Aerofoil icon indicating copy to clipboard operation
Aerofoil copied to clipboard

[ImgBot] Optimize images

Open cooljeanius opened this issue 1 year ago • 2 comments

ImgBot reduces image file sizes losslessly with ImageMagick, Svgo, and MozJpeg. Here are its results for this repository:

*Total -- 2,257.75kb -> 1,885.42kb (16.49%)

/rapidjson/doc/diagram/iterative-parser-states-diagram.png -- 90.21kb -> 45.68kb (49.36%)
/rapidjson/doc/logo/rapidjson.svg -- 4.13kb -> 2.10kb (49.2%)
/AerofoilAndroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -- 0.94kb -> 0.62kb (34.37%)
/rapidjson/doc/diagram/utilityclass.png -- 97.65kb -> 70.33kb (27.98%)
/rapidjson/doc/logo/rapidjson.png -- 5.14kb -> 3.72kb (27.53%)
/rapidjson/doc/diagram/architecture.png -- 16.18kb -> 12.10kb (25.23%)
/rapidjson/doc/diagram/insituparsing.png -- 36.41kb -> 27.39kb (24.76%)
/rapidjson/doc/diagram/simpledom.png -- 42.65kb -> 32.58kb (23.6%)
/rapidjson/doc/diagram/normalparsing.png -- 32.12kb -> 24.63kb (23.32%)
/rapidjson/doc/diagram/move1.png -- 15.70kb -> 12.10kb (22.96%)
/rapidjson/doc/diagram/move3.png -- 35.52kb -> 27.45kb (22.7%)
/ReleasePackageInstaller/DialogBanner.png -- 8.21kb -> 6.46kb (21.32%)
/rapidjson/doc/diagram/tutorial.png -- 43.59kb -> 34.76kb (20.25%)
/AerofoilAndroid/app/src/main/res/mipmap-mdpi/ic_launcher.png -- 1.94kb -> 1.56kb (19.64%)
/rapidjson/doc/diagram/move2.png -- 40.54kb -> 32.75kb (19.23%)
/AerofoilMac/AerofoilMac/Assets.xcassets/AppIcon.appiconset/1024.png -- 1,214.29kb -> 1,005.03kb (17.23%)
/SDL2-2.0.12/VisualC-WinRT/tests/loopwave/Assets/SplashScreen.png -- 2.10kb -> 1.77kb (15.52%)
/SDL2-2.0.12/VisualC-WinRT/tests/testthread/Assets/SplashScreen.png -- 2.10kb -> 1.77kb (15.52%)
/FreeType/freetype/docs/reference/site/assets/images/icons/gitlab.6dd19c00.svg -- 1.61kb -> 1.37kb (15.18%)
/FreeType/freetype/docs/reference/site/assets/images/icons/github.f0b8504a.svg -- 1.17kb -> 1.04kb (11.66%)
/FreeType/freetype/docs/reference/site/assets/images/icons/bitbucket.1b09e088.svg -- 1.39kb -> 1.24kb (11.1%)
/SDL2-2.0.12/Xcode-iOS/Template/SDL iOS Application/[email protected] -- 81.83kb -> 73.16kb (10.59%)
/AerofoilAndroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -- 0.73kb -> 0.68kb (6.03%)
/AerofoilAndroid/app/src/main/res/mipmap-hdpi/ic_launcher.png -- 4.39kb -> 4.16kb (5.16%)
/AerofoilMac/AerofoilMac/Assets.xcassets/AppIcon.appiconset/512.png -- 342.98kb -> 326.81kb (4.71%)
/AerofoilMac/AerofoilMac/Assets.xcassets/AppIcon.appiconset/256.png -- 98.33kb -> 98.26kb (0.07%)
/SDL2-2.0.12/Xcode-iOS/Template/SDL iOS Application/Default.png -- 17.95kb -> 17.94kb (0.05%)
/SDL2-2.0.12/Xcode-iOS/Demos/Default.png -- 17.95kb -> 17.94kb (0.05%)

Signed-off-by: ImgBotApp [email protected]

cooljeanius avatar Sep 05 '23 03:09 cooljeanius

Note that with the way git handles version control for binary files, the old version of the images will still be part of the repository, taking up space, even after committing the new version of the images. So adding smaller versions of the images actually increases the size of the repository rather than reducing it.

samuelbradshaw avatar Sep 05 '23 15:09 samuelbradshaw

well, yes, increases the size of the repository, but it still ought to reduce the size for end-users who aren't using git

cooljeanius avatar Sep 06 '23 00:09 cooljeanius

I think I'm going to decline this, sorry. I think most of these files could just be deleted (don't really need docs and test files from third-party libraries in the source code distribution) and the main ones that are saving size are the Mac version icons. However, I think those may need to be revised anyway as it looks like they may be using an unlicensed graphic from Glider Classic.

elasota avatar Aug 04 '24 04:08 elasota