In reply to Ciprian Popescu.

Turns out phpThumb has a WebP output option - https://github.com/JamesHeinrich/phpThumb/issues/107