Imagick cannot load module

I am trying to use Imagick to edit images, but I am getting an exception like this:

 ImagickException: UnableToLoadModule `C:\xampp\apache\bin\IM_MOD_RL_JPEG_.dll': The specified module could not be found.
 @ error/module.c/OpenModule/1300 in C:\xampp\htdocs\public\test.php:4
Stack trace:
#0 C:\xampp\htdocs\public\test.php(4): Imagick->__construct('C:\\xampp\\htdocs...')
#1 {main}

      

I have looked at the phpinfo page and I cannot find that jpeg images are supported even if the DLL is in the apache \ bin folder. (here is a screenshot of my phpinfo info returned regarding imagick http://imgur.com/WnMUgXO ). Also, the contents of apache / bin are http://imgur.com/DvqxBl1 , which clearly show that IM_MOD_RL_jpeg.dll is in the directory, Is there anything I am missing since clearly jpeg files are not supported in this installation I did with Imagick, but I think I did something wrong as I can't imagine jpeg images not being supported.

Any help would be appreciated.

Thank!

Update - I fixed it, I had a wrong build.

+3


source to share


1 answer


According to http://www.imagemagick.org/discourse-server/viewtopic.php?t=31170 the solution is to set MAGICK_HOME to hoding folder of ImageMagick and IM_MOD_RL_JPEG_.dll.



+3


source







All Articles