Jump to content

Command Crate ¿about?

Optimize GIF images recursively (gifsicle)

find . -name "*.[Gg][Ii][Ff]" -printf '  gifsicle   > %p\n' -exec gifsicle --batch --no-warnings --no-comments --optimize=3 {} \;

This command recursively searches for GIF files (*.gif or *.GIF) and uses gifsicle to apply advanced optimization (--optimize=3) while removing comments and warnings for a quieter process. The --batch flag ensures that all GIF files are processed in batch mode. This results in smaller, more efficient GIFs without losing quality.

multimedia [kb:71]