I'm on php8.2 and have chosen the Imagemagick PECL extension (Imagick compiled with ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org)
I ran the CLI image optimization and got rid of some GBytes.
When I look for the biggest files there are still a lot of animated gifs there, I thought they would have been converted to webp animation?
They still only have the .gif extension
I did start with with GD but aborted after maybe 5% of the images and changed to imagick and ran it again, the .gifs where not among the 5% first images.