muuucho's avatar
Level 11

Warning about imagick

EDIT This turns out not to be about Imagick. I will start a new thread.

I have installed Imagick but get's a warning when I try to intstall spatie/pdf-to-image saying that ext-imagick is missing. However I have Imagick according to XAMPPs PHP info:

imagick module version 3.7.0 imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel Imagick compiled with ImageMagick version ImageMagick 7.1.0-18 Q16 x64 2021-12-14 https://imagemagick.org Imagick using ImageMagick library version ImageMagick 7.1.0-18 Q16 x64 2021-12-14 https://imagemagick.org ImageMagick copyright (C) 1999-2021 ImageMagick Studio LLC ImageMagick release date 2021-12-14 ImageMagick number of supported formats: 263

0 likes
1 reply
muuucho's avatar
Level 11

1 I have extension=php_imagick.dll in php.ini

2 Nothing shows after php -m | grep imagick

3 I added that line, but still nothiong after php -m | grep imagick

4 Added export COMPOSER_PHP=C:\xampp

I also removed HERD, since I moved to XAMMPP in order to be able to use imagick. That resulted in that I cant use the terminal in the project, I get: bash: php.bat: command not found

EDIT: I added the path so Xampps php in windows environment path: `C:\xampp\php'

I use WINDOWS 11 and PHP8.2.12

When I moved the project from HERD to XAMPP I just copied the project using CtrlC/V in Explorer. When I Try to run php -m | grep imagick from windows terminal instead of Git terminal I get more info:

grep : The term 'grep' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
 spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:10
+ php -m | grep imagick
+          ~~~~
    + CategoryInfo          : ObjectNotFound: (grep:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException```

Please or to participate in this conversation.