I would like to get cropped square thumbnail for every image uploaded from the panel with a size of 400x400px. the tumb() and resize() functions doesn’t seem to work.
I apparently have the same kind of problem as documented in this thread but i don’t find any solution.
I have tried this autoresize plugin without any success.
My current settings are :
return [ 'thumbs' => [ 'driver' => 'im', // I also tried gd driver 'quality' => 90, 'presets' => [ 'default' => ['width' => 400, 'quality' => 90, 'crop' => true], ] ] ]
this is my blueprint for the image part :
thumbnail: type: files label: Album cover info : Ne s'affiche que si le lien Bandcamp n'est pas renseigné. layout : cards query: page.images uploads: template: image image: back: white multiple: false
In my code i try to get the thumbnail url with :
$thumbnail = $article->thumbnail()->toFile()->thumb()->url();
I guess something is happening because I get the URL with these parameters at the end : “400x-crop-1-q90.jpg”
The problem is the result image isn’t modified at all, it is just the full size image without any modification.
I checked and imagick extension is activated server side. Am I doing something wrong ?
Thank you for your help : )