Imagick not loading images, with 'NoDecodeDelegateForThisImageFormat' error message

前端 未结 4 470
别那么骄傲
别那么骄傲 2020-12-03 11:56

Trying to create a thumbnail, but i\'m getting some errors and I have no experience with Imagick.

Here is my PHP:



        
4条回答
  •  萌比男神i
    2020-12-03 12:24

    Question is old but since this issue seems a bit hacky to solve also nowadays, I post here a quick solution:

    If you're on Windows, you can find here a repository containing ImageMagick DLL.

    After you successfully load php_imagick.dll extension in /php/ext/ folder

    1. print a phpinfo() page and watch the corresponding ImageMagick version reported under 'Imagick using ImageMagick library version' label
    2. then download the zip of that version of ImageMagick
      eg. for latest TS-VC11-x86 stable version:
      php_imagick v3.4.1 > ImageMagick-6.9.3-7-vc11-x86.zip
    3. finally, extract the downloaded zip, go to its bin folder and copy all IM_MOD_RL_...dll files and FILTER_...dll files to /apache/bin/ folder, then restart your server, finish!
      No need to run installers or change environment variables etc.

提交回复
热议问题