PHP | Convert TIFF to PNG -
the php version using 5.3.1 running on windows server 2003 r2.
currently having problem trying convert tiff file png file. searched quite while , found out common way deal image conversion in php using imagemagick. (is possible convert tiff png using native php?)
the problem facing right can't imagemagick work properly. tried installing following executables on server without success:
- imagemagick-6.9.1-2-q16-x64-dll.exe.
- imagemagick-6.9.1-2-q16-x86-dll.exe.
- imagemagick-6.7.7-5-q16-windows-dll.exe.
- imagemagick-6.9.1-2-q16-x86-static.exe.
after installation tried following code see if works:
<?php $image = new imagick("image.tif"); ?>
which gives me following error:
fatal error: class 'imagick' not found in directory on line 2
i wondering if has dealt before can push me right direction. appreciated.
here list of php extensions working images:
https://pecl.php.net/packages.php?catpid=12&catname=images
but @scrowler said continue using imagick. make sure latest stable version of imagick extension php version here (php 5.3 @ bottom of list):
https://pecl.php.net/package/imagick/3.1.2/windows
and make sure have line in php.ini:
extension=php_imagick.dll
if it's missing add manually , restart apache.
Comments
Post a Comment