For some reason I can't find the right match in version.
I got a local Xampp server on a Windows 7 Ultimate 32-bit system. It has PHP 5.4.7 on it with MSVC9 Compiler. (Looked those things up in my php.ini and its the right one). Xampp is installed in the E:/ folder (E:/xampp).
1. I installed ImageMagick version 6.8.8.1 by using the .dll.exe 6.8.8.1-Q16-x86.dll.exe and I got it from here: http://ftp.sunet.se/pub/multimedia/grap ... /binaries/. (The reason why I picked this one, is because this one is an .exe file). I installed it in the xampp folder: E:/xampp/ImageMagick
2. After the installation I can use the exec(); command in my php code (htdocs) which is working like a charm.
Code: Select all
exec("convert -strip -units PixelsPerInch inputs.jpg -resample 100 -set density 100 savedimage/output.jpg", $return);
4. When I started checking with the following code:
Code: Select all
if (!extension_loaded('Imagick')) {
echo "Its not there.";
}
else {
echo "Its there.";
}
5. When I tried to execute the exec(); from above there was no output. So I checked the version again and it said: 6.8.8.4.
Ofcourse the question remains why I want both to work. I know a bit how ImageMagick works but I need Imagick as image library for CodeIgniter. So by having both on my computer I can do some testing and try to get the same output with Imagick and ImageMagick.
My question is: is there a way to make them both work together or find a matching Imagick - ImageMagick? And how should I install it to get them both working?