Safe texture compression (#2808)
Only a single program was used to safely compress all textures in MTG. * `optipng -o7 -zm1-9 -nc -strip all -clobber %%f` The key command used is -nc, which stops color mode changes. I.e. any RGBA textures will remain RGBA textures, with none being changes to 8-bit indexed mode. utils/optimize_textures.sh performs this compression automatically, assuming optipng is installed.
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 210 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 867 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1013 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 133 B |