I have installed the ImageMagick extension for PHP on CentOS, but it does not have support for PNG or JPG, how do I add support for these file types to ImageMagick?
I have installed the ImageMagick extension for PHP on CentOS, but it does not have support for PNG or JPG, how do I add support for these file types to ImageMagick?
You would possible need to compile it from the source with the options to what you have misssing:
Always you face a problem related to the system thing, give details about your enviroment: version of packages, version of linux distribution, etc. That said, it is known that ImageMagick 6.4.x on CentOS 5 give problems with formats you explained.
You get a bunch of details on this post of Andrew Duck:
ImageMagick 6.4.x on CentOS 5
He got solution removing ImageMagick package, and compiling the source plus related stuff:
Which ImageMagick extension for PHP on CentOS did you install, and how did you do it? As far as I'm aware, there isn't such an extension in base CentOS 5.x. Did you use the
php-pecl-imagick
package from EPEL? That should already be built with PNG and JPEG support.ehm, just in case, do you have an x86_64 CentOS system ? you install the *-devel for x86_64 ? i386 ? do you ref to the correct header/libs in the build for x86_64 if you have and x86_64 system ?
Centos has a binary release. I suggest you should go with that.