Having huge trouble getting images generated succesfully, my site seems to be falling back to the images in the content folders rather then the media folder.
I have confirmed that Imagemagic is installed correctly on the server. If i do the following in the plainkit, i succesfully get WebP and Avif files…
$i = $page->image('echo-ridge-hero.jpg')->realpath();
$imagick = new \Imagick();
$imagick->readImage($i);
$imagick->setImageFormat('avif');
$imagick->writeImage('im_echo-ridge-hero.avif');
$imagick->setImageFormat('webp');
$imagick->writeImage('im_echo-ridge-hero.webp');
However, none of these result in files in the media folder:
<?= $page->image('echo-ridge-hero.jpg')->thumb(['width' => 505, 'height' => null, 'format' => 'avif'])->url() ?>
<?= $page->image('echo-ridge-hero.jpg')->thumb(['width' => 505, 'height' => null, 'format' => 'webp'])->url() ?>
<?= $page->image('echo-ridge-hero.jpg')->thumb(['width' => 505, 'height' => null, 'format' => 'jpg'])->url() ?>
I do get the path echoed on the page, but all thats in the media folder is the job json files.
There isnt anything in the error logs. I am a bit stumped here. Any idea what is going on? Everything works great locally.