Monkey Original, welcome reprint. Reproduced please specify: reproduced from COCOS2DER-CSDN, thank you!
Original address: http://blog.csdn.net/cocos2der/article/details/42562705
Today due to project requirements, you need to use ImageMagick, after the installation is complete, processing PNG encounters
Convert:no Decode Delegate for this image Format Error
This is mostly libpng not installed. The following records the installation process. Suppose you haven't installed libpng before.
First, download imagemagick,libpng
imagemagick Download address: http://www.imagemagick.org/download/ImageMagick.tar.gz
Libpng:libpng-1.6.16.tar.gz
ImageMagick Official Website Installation Introduction: Http://www.imagemagick.org/script/install-source.php#unix
ImageMagick Delegates list:http://www.imagemagick.org/download/delegates/
Second, installation libpng
$ Tar xvzf libpng-1.6.16.tar.gz
$ CD libpng-1.6.16
$ ./configure
$ Make
$ sudo make install
Third, add environment variables, after the completion of the Restart terminal effective
Export cppflags= '-i/usr/local/include '
Export ldflags= "-l/usr/local/lib"
Iv. installation of ImageMagick
$ Tar xvzf ImageMagick.tar.gz
$ CD imagemagick-6.9.0-3
$ ./configure
$ Make
$ sudo make install
Note: Install ImageMagick, execute./configure when viewing the installation configuration, note that PNG is supported, note that no indicates that the current installation is not supported. If it is no, please check if the steps are incorrect.
Mac under ImageMagick installation (libpng)