问题
I've installed pecl-imagick from FreeBSD ports and it can't do a thing with images.
phpinfo() reports this:
ImageMagick number of supported formats: 0
ImageMagick supported formats: no value
But ImageMagick installed correctly and show all it's stuff:
$ convert -list configure
...
DELEGATES bzlib fftw fontconfig jpeg jng lzma png zlib
...
What could be wrong and how to fix it?
回答1:
I found that having an extension for GraphicsMagick (a "better" fork) installed causes that.
If you don't feel how it makes any sense, I'm totally with you.
回答2:
Did you install PHP from ports? Update your ports and re-install packages.
来源:https://stackoverflow.com/questions/6595418/no-formats-supported-in-php-imagemagik-imagick