By reading all these posts i would like to guide in a way which helped me a lot.
To install IMagick on windows xp (php 5.2.x)
1.) download and install ImageMagick-6.5.8-7 Q16-windows-dll.exe
http://www.imagemagick.org/download/binaries/ ImageMagick-6.5.8-7-Q16-windows-dll.exe
2.) download php_imagick_dyn-Q16.dll from:
http://valokuva.org/outside-blog-content/ imagick-windows-builds/080709/
copy dll to [PHP]/extension dir and rename it to php_imagick.dll
(step 2 is not compulsory if you already have the extension installed you need to check in your ext / extensions directory if that php_imagick.dll file exists)
3.) You have to edit your php.ini file and add new extension
"extension=php_imagick.dll"
4.) Save ini file and restart apache server.
(If necessary, restart your windows)
5.) phpinfo() should show imagick enabled.
now till here every thing is fine but when we go to phpinfo it wont show that imagick is enabled ,
the thing to notice are these two lines
No 6 & No 7 on the phpinfo page which have this text
Configuration File (php.ini) Path
Loaded Configuration File
check that the
Configuration File (php.ini) Path
and the
Loaded Configuration File
are loading any files. when i was working for the first time it really made me mad
it showede nothing in the
Loaded Configuration File tab, it said that no configuration is loaded if this is what the problem is with you then you must enable the changes in the file which is located in the
Configuration File (php.ini) Path otherewise you must change the other file which is against
Loaded Configuration File
go there uncomment the
extension=php_imagick.dll
and then restart apache
it will work ,
and to convert i prefer this method rather than jargon of code
-
exec("convert test.pdf -thumbnail 800x600 converted_pdf.tiff");
-
Hope that helps you out.
regards,
Omer Aslam