Kirby version: 4.6.1
php version: 8.2
imagemagick version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
which convert: /usr/bin/convert
When trying to upload a file in the panel (even with the plainkit), I very often have this error:
The imagemagick convert command could not be executed: 'convert' -limit thread
'2’'/home/studiae/dev/content/projects/_drafts/project/file_1.jpg'
-auto-orient -thumbnail '1852x2778!' -quality '90'
'/home/studiae/dev/content/projects/_drafts/project/file_1.jpg'
Here is my blueprint :
title: Image
accept:
extension: jpg, png, jpeg, gif, mp4
maxsize: 4500000 # size in byte = 3 MB
create:
width: 2560
and my config:
'thumbs' => [
'driver' => 'im',
'threads' => 2,
'bin' => 'convert',
'srcsets' => [
'my-srcset' => [ // preset for jpeg and png
'400w' => ['width' => 400, 'crop' => true, 'quality' => 80],
'640w' => ['width' => 640, 'crop' => true, 'quality' => 80],
'1360w' => ['width' => 1360, 'crop' => true, 'quality' => 80],
'1900w' => ['width' => 1900, 'crop' => true, 'quality' => 80],
],
'my-srcset-webp' => [ // preset for webp
'400w' => ['width' => 400, 'crop' => true, 'quality' => 75, 'format' => 'webp', 'sharpen' => 10],
'640w' => ['width' => 640, 'crop' => true, 'quality' => 75, 'format' => 'webp', 'sharpen' => 10],
'1360w' => ['width' => 1360, 'crop' => true, 'quality' => 75, 'format' => 'webp', 'sharpen' => 10],
'1900w' => ['width' => 1900, 'crop' => true, 'quality' => 75, 'format' => 'webp', 'sharpen' => 10],
],
'my-srcset-avif' => [ // preset for avif
'400w' => ['width' => 400, 'crop' => true, 'quality' => 65, 'format' => 'avif', 'sharpen' => 25],
'640w' => ['width' => 640, 'crop' => true, 'quality' => 65, 'format' => 'avif', 'sharpen' => 25],
'1360w' => ['width' => 1360, 'crop' => true, 'quality' => 65, 'format' => 'avif', 'sharpen' => 25],
'1900w' => ['width' => 1900, 'crop' => true, 'quality' => 65, 'format' => 'avif', 'sharpen' => 25],
],
],
],
I’m also using kirby-imagex. But it doesn’t seem related somehow…
After removing the create, the error disapears, but the thumbnails in the panel are not generated properly…
This was related to this previous post, but it’s now happening in the panel. Error: The imagemagick convert command could not be executed - OVH - #6 by paubou