Hello,
I've also been trying to get imagemagick or the imagick PHP extension to work with CollectiveAccess in a Windows environment. First I was trying to get imagemagick to work. Using the path "C:/EHS/ImageMagick", ImageMagick shows up as available in the configuration check. But, when I try to upload a TIFF file, I get the error message:
"There are errors preventing information in specific fields from being saved as noted below.
Unknown file type not accepted by media"
I turned on debugging in media.php and added some debug output to ImageMagick.php. It looks like the exec line in _imageMagickIdentify is returning null instead of TIFF. I tried executing:
cmd \c C:/EHS/ImageMagick/identify -format "%m" "C:/xampp/test.tiff", and that returned TIFF like I would expect. But the execute command is trying to look at file C:/xampp/tmp/php6519.tmp. I checked, and this file exists, but is 0 KB. So I'm not sure if the problem is with the "exec" command in a Windows environment, or if the .TMP file being 0KB is the problem. Has anyone still had problems with imagemagick even after the configurationchecker says it's available?
After seeing suggestions to use imagick instead, I have been trying to get that to work, but feel quite confounded. I have a Windows 7, x64 bit system. I don't have any experience with PECL/PEAR and am having problems. After doing some googling, it looks like I need a windows DLL build, which I found at http://valokuva.org/?page_id=50. But after installing the dll in my php/ext folder, updating php.ini file, and restarting apache, I get a message:
"PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_imagick.dll' - The specified module could not be found"
That php_imagick.dll file does exist. I've tried using both the "thread safe" and "non-thread safe" dll's, though I'm not sure the difference. Neither worked. I found suggestions that incorrect dll versions can cause problems, but can't figure out what I need. Does anyone know how to get imagick installed with the current CA/XAMPP version in a Windows x64 environment?