programs/games: Optimize GIFs #235
Reference in New Issue
Block a user
No description provided.
Delete Branch "ace-dent/kolibrios-gitea:PR-OptimizeGIFs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lossless optimization of GIF image files.
Processed with
gifsicle -O3
(extreme) orgifsicle --no-loopcount
(when only minimal adjustment is permitted).LZW stream optimized with
flexigif -p -f -a=1
. Methods selected to ensure optimal compression with final KPACK step, since better LZW may reduce LZMA used in bundling programs, using:xz --format=lzma --check=none --lzma1=mode=normal,dict=64KiB,nice=273,lc=3,lp=0,pb=2 -k -c in.gif > out.lzma
Tested with GIF Inspector and via code review.
📦 Program graphics (compiled or included with software):
almaz/aniall.gif
, saving 380 bytes, ~9%.invaders/
21 files, saving 1232 bytes, average ~3%.megamaze/orientg2.gif
, saving 986 bytes, ~31%.phenix/objects.gif
, saving 24 bytes, ~2%.🥀 Old vestigial images, no longer used:
almaz/explode1.gif
, 4865 bytes.phenix
almaz
cdadea3fe4
to1c40140d54
1c40140d54
tofbb2a84ebe
fbb2a84ebe
to58666917d2
invaders
Lossless optimization of GIF image files, with `gifsicle -O3` and `flexigif -p -f -a=1`. 📦 Program graphics (compiled or included with software): - 21 files, 1232 bytes saved total, average saving ~3%.
megamaze
Lossless optimization of GIF image files, with `gifsicle -O3` and `flexigif -p -f -a=1`. 📦 Program graphics (compiled or included with software): - Slimmed 'megamaze/orientg2.gif' from 3114 to 2128 bytes, saving 986 bytes, ~31%.
f349bb0f69
tocc53152fab
almaz
cee331bfa8Lossless optimization of GIF image file, removing excess `NETSCAPE` loop blocks. Could not use `gifsicle` due to program specific local palettes. Did not apply `flexigif`, as this hinders KPACK LZMA compression. 📦 Program graphics (compiled or included with software): - Slimmed `almaz/aniall.gif` from 4248 to 3868 bytes, saving 380 bytes, ~9%.
invaders
Lossless optimization of GIF image files. Selective use of `gifsicle -O3` and/or `flexigif -p -f -a=1`, ensuring optimal KPACK LZMA compression. 📦 Program graphics (compiled or included with software): - 21 files, 1232 bytes saved total, average saving ~3%.
I've tested and happy with output. Needs to be tested with a full distro (e.g. ISO).
Some files were re-processed (reduced optimization!), to better work with KPACK. I can give more details if required.
These changes save ~1.4 KiB in the final shipped binaries.
WIP: programs/games: Optimize GIFsto programs/games: Optimize GIFsAll modified games (
almaz
,inviders
,megamaze
andphenix
) seems to be working okay.But I am not sure about
megamaze
, can't understand controls here, and also content seems to be over-floating window size (not related to this PR)Thanks @Burer for your time and review.
Took me a while too! You need to click on the Game (/maze type) to select different variants. Eventually you will find the graphics for the cars!
Got it, thank you!
Car graphics looks to be okay, even if I didn't manage to understand controls 😂
1ad3d5b27f
to1565fb3720