The imagemagick convert command could not be executed

I’m using Kirby on a local dev instance with Laravel Herd and having trouble getting image conversion working with Imagemagick and was wondering how to go about fixing it.

The error is as follows:

The imagemagick convert command could not be executed: 'convert' -limit thread '1' '/REDACTED/2909d5ff5c-1723845645/001-2000x-q50.jpg' -auto-orient -thumbnail '977x1200!' -quality '50' '/REDACTED/2909d5ff5c-1723845645/001-2000x-q50.jpg'

exec is working, but it just can’t seem to find the convert command

The imagick extension is visible in phpinfo but I imagine this is trying to use convert via the commandline? (which is also installed via homebrew at /opt/homebrew/bin/convert)

Have you set the path to the binary in your config as described in the docs: thumbs | Kirby CMS

1 Like

Thank you as always, this was the issue!

Hi @texnixe

maybe you have a hint for my problem with this cookbook.

It works just fine, but the image that gets created with pdfs with multiple pages is always the image of the last page of the pdf. But mostly the first page is the one that matters :slight_smile:

How can i get an image of the first page of the pdf?

thanks in advance:)

Theoretically, passing the page option should take care of getting the right page, in the examples we default to 0, which should be the first page.

I’d have to test the recipe myself again to debug this if it doesn’t work as expected. Might take a while until I get round to it, though.