I remembered someone saying "WEBP is bad" so I asked an #LLM to explain and suggest alternatives.
It suggested AVIF which I didn't know about.
Asked if it is supported by the major browsers and by Wordperss. Yes!
I have Python code that uses PIL to extract the first page of PDF files and save them as an image. I asked the machine to modify the code to extract as AVIF. It did and it works.
Good to have machines that can do all those things for me.