Resolves low-quality, non-looping GIFs by using FFmpeg's two-pass palette method to resize and optimize animations for infinite playback.