Mac under ImageMagick installation (libpng)

Source: Internet
Author: User
Tags imagemagick

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.