1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installation of PECL Imagick extension

Discussion in 'Server Configuration and Hosting' started by Saeed, Oct 3, 2011.

  1. Saeed

    Saeed Well-Known Member

    Hi everybody. :)

    The server that hosts my forums runs Windows 2008, and has PHP 5.3.6 installed. I asked my webmaster, a friend of mine, to install the PECL Imagick extension as an image processing library and he successfully installed Image Magick <ImageMagick-6.7.2-9-Q16-windows-x64-dll.exe> from here.

    The next step was to install the imagick extension. However, it seems that a compiled .dll is not available for this extension on the PHP site.

    Am I looking for imagick in the right place? Any guidance would be appreciated. :)
     
  2. EQnoble

    EQnoble Well-Known Member

  3. Saeed

    Saeed Well-Known Member

    I sure did. That page actually lists the source files which then need to be 'compiled' into a .dll file for installation under windows. Apparently, the guys at PHP.net no longer provide Windows builds on their site.

    http://www.php.net/manual/en/imagick.installation.php
    Though, I did find a blog <Mikko’s blog>where he has uploaded the compiled .dll's for several extensions, just in case this helps anyone else: http://valokuva.org/builds/

    Thanks for helping though, Ant. I'll update here after attempting the install. :)
     
  4. EQnoble

    EQnoble Well-Known Member

    isn't this a requirement (what your friend installed) <ImageMagick-6.7.2-9-Q16-windows-x64-dll.exe>

    for this extension
    what I am asking is..( I am actually asking here) would you not just have to install the extension into php now?
     
  5. Saeed

    Saeed Well-Known Member

    Yup, only the extension needs to be installed now. But for an installation under Windows, you need a Windows build, in the form of a .dll that is compiled from the source files package which you linked to earlier.
     
  6. EQnoble

    EQnoble Well-Known Member

  7. Saeed

    Saeed Well-Known Member

    Ok, I finally got it working on my server. Thought I would share some resources I searched around for while doing so, in case it may help someone else. :)

    For installation of the PECL Imagick extension, you need to be wary about the compilation versions of 3 things, which are PHP, ImageMagick and Imagick. Since I have a Windows Server 2008 installation, the discussion below is about Windows builds.

    Two different compilations of the above 3 are available; those compiled with Visual Studio 6 compiler are called VC6 and those compiled with Visual Studio 2008 compiler are called VC9. It is necessary that you use windows binaries by the same compiler. i.e. if you installed a VC9 PHP version, then the remaining should have been compiled with VC9 as well.

    PHP: Later builds are being released as VC9 compilations. Latest versions for both VC6 and VC9 may be found at PHP For Windows.

    ImageMagick: This was a bit tricky. According to a blog post I came across, latest versions are being released as VC10 compilations, meaning that we needed a VC9 compilation for this to work. However, there is no indication on their site as to which versions are VC10 compilations and which are VC9. Anyhow, the last compilation which had been found to be a VC9 compilation was 6.6.4-1, as claimed in this nicely written tutorial here.
    I could not find an archive of older versions for ImageMagick on their site, but a very detailed list of ImageMagick compilations can be found here: http://image_magick.veidrodis.com/image_magick/binaries/

    Imagick: Apparently, these guys do not provide DLL compilations at all at their official site. However,
    VC9 builds have been released in this blog post at Mikko's Blog, which can be downloaded at http://valokuva.org/builds/
    VC6 builds have been released and can be downloaded from VC6 Windows binaries for imagick 2.3.0.
     
    Reedswood and Lilybet like this.

Share This Page