Run Oxipng on all PNG Files - #672
Conversation
|
It's a thoughtful idea, but it doesn't help to compress the Git repository because existing versions of assets are permanently saved in history. This PR would only increase the overall size (73.2 MiB -> 76.6 MiB on local test) since more objects would have to be recorded (unrelated, but it also caused a memory leak and nearly made my system crash when I opened the "Files changed" tab lol) |
|
I agree; it'd make cloning take longer, but I do wonder if it'd make Kristal load faster. Kristal's slow loading comes from assets being small individual files; I wonder if making the files smaller would help. The biggest issue is engine forks and potentially causing merge conflicts with binary files. |
Oxipng is a useful tool that minimizes the space PNG files take while making absolutely no visual or practical difference. While on individual files it tends to make little difference size-wise, as a unit this can reduce filesize heavily.
For any future use, the batch script I use to run this on all files in a directory and its subdirectories is:
oxipng -o 6 --strip safe --alpha {} **/*.pngI hope this provides any benefit.