I dont know why i cant edit, my post (i send it in mistake). So once again:
Hello processwire world!
Im having a little problem with getting my image in WEBP format.
I in my config i have:
The code which fails
$image = $pages->get('/')->images->first();
echo $image->webp()->url(); // Fails: Error: Exception: Method Pageimage::webp does not exist or is not callable in this context
echo $image->url; // returns path correctly
I'd love to hear your opinion on that, im having really hard time with it 😞