Version problem Imagick & ImageMagick
Posted: 2014-02-11T07:07:26-07:00
I'm having a problem with letting both Imagick & ImageMagick working both on my computer. its either one of them working but never both of them. I used these steps to get it working: viewtopic.php?f=18&t=24673
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.
3. I downloaded Imagick for PHP 5.4 and put the php_imagick.dll in the php/ext/ folder. (E:/xampp/php/ext/) After that I enabled it in my php.ini with extension=php_imagick.dll. Then I rebooted my system. Download location: http://pecl.php.net/package/imagick/3.1.2/windows
4. When I started checking with the following code:
I received the last echo: "Its not there.", so I copied all the other .dll files into the E:/xampp/ImageMagick folder. From that moment on I got the 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?
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?