I have installed ImageMagick (IM) on Windwos 10, I can use “magick --version” in the terminal to see which version I am running - which shows me that IM is installed correctly.
With “phpinfo();” it also confirms to me that IM is available for PHP. In the config.php, “driver’ => 'im” is entered.
I develop local and start Kirby with ‘php -S 127.0.0.1:8000 kirby/router.php’.
My problem now is that IM just doesn’t “want” to work. When I call up a Kirby page with a before deleted media folder, the corresponding directory in the media folder is recreated, but only with .json files in the .jobs directory. The actual images with my thumbs() settings are not generated.
If I remove “driver’ => 'im”, then everything works without problems. What am I doing wrong in the combination of “php -S …” and ImageMagick on a Windows system?
I know this link and I have already tried a few things here. If I enter “which convert” in the GitBash under Windows, I get the answer “/c/WINDOWS/system32/convert”. I have then also entered this in "‘bin’ => ‘/c/WINDOWS/system32/convert’ - in different path notations. Unfortunately, all without success.
In the directory “C:\Program Files\ImageMagick-7.1.1-Q16-HDRI” I cannot find a “bin” or “convert” folder either.
If I have understood this correctly, then the “exec()” method is allowed if it is not listed in the php.ini under “disable_functions =” - right? If yes, then “exec()” is allowed.
Since the exec() function is called in a Windows cmd environment, you might need to test this in a cmd window, not GitBash. If you do try to execute convert in a cmd window and the convert program is not found, then this might the reason. Try to figure out the full path in a cmd window and use this as the value to bin.
Also note that as far as I know, Kirby is intended to be used with the imagemagick legacy command parser (the one from IM version 6, not 7).
By using the magick command, instead of the convert utility you activate the imagemagick 7 command parser which changes some things. Kirby makes a fairly simple use of imagemagick, so it might not actually change anything for you, but to be on the safe side, I’d point the bin path to the convert utility: