Automate image conversion to WEBP and AVIF with a bash script, featuring encoder fallback and OS detection for seamless integration.