Reputation: 173
The PHP version I am using is 5.3.1 which is running on a Windows Server 2003 R2.
Currently I am having a problem trying to convert a TIFF file to a PNG file. I searched for quite a while and found out the most common way to deal with image conversion in PHP is using Imagemagick. (Is it possible to convert a TIFF to PNG using native PHP?)
The problem I am facing right now is that I can't get Imagemagick to work properly. I tried installing the following executables on the server without success:
After installation I would tried the following code the see if it works:
<?php $image = new imagick("image.TIF"); ?>
Which gives me the following error:
Fatal error: Class 'Imagick' not found in directory on line 2
I was wondering if someone who has dealt with this before can push me into the right direction. All help is greatly appreciated.
Upvotes: 1
Views: 1304
Reputation: 6219
Here are list of PHP extensions for working with Images:
https://pecl.php.net/packages.php?catpid=12&catname=Images
But as @scrowler said continue using imagick. So make sure you get the latest stable version of imagick extension for your PHP version from here (PHP 5.3 at the bottom of the list):
https://pecl.php.net/package/imagick/3.1.2/windows
And make sure you have this line in your php.ini:
extension=php_imagick.dll
If it's missing add it manually and restart your Apache.
Upvotes: 1