Configuring ImageMagick on MAMP for Windows

Omeka 2.5 makes some changes that should improve Windows path handling which might help.

The steps you’re taking combine at least 3 things that are basically separate, though:

  • One thing you’re changing settings and files for is file “magic,” the system PHP uses or used for determining what type a file is. This isn’t related to ImageMagick, despite the similar names. (These changes include the “php_mime_magic” extension, the 4 “magic” files you downloaded, and the “MAGIC” environment variable).
  • Another thing you’re doing is installing and pointing to the ImageMagick command-line tools (convert.exe). This is the traditional way to get thumbnailing working in Omeka. I wouldn’t be sure that you can just copy the files out from their installation directory to somewhere else and have them still work. This often isn’t the case on Windows.
  • The third thing is trying to set up the Imagick extension. This is the stuff dealing with “php_imagick.dll.” Usually you have to get that file separately and install it in php’s “ext” folder.

The simplest option should be: install ImageMagick from the installer (choose a simple folder name like c:\ImageMagick at install time just to make things easier), then use that path where it installed as the path you tell Omeka for the ImageMagick directory path. Once you start getting into copying things around and editing PHP’s configuration, you’re introducing a lot more variables, as well as making changes that don’t really affect the specific thing you’re trying to do.