klxedu / blog

2 stars 0 forks source link

imageMagick convert: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/509 #30

Open songhuiqing88 opened 7 years ago

songhuiqing88 commented 7 years ago

无png类库支持,具体解决方法如下。

  • 1、安装libpng。yum install libpng libpng-devel
  • 2、重新编译imageMagick。进入imageMagick目录执行 ./configure,检查编辑结果日志中png支持是否yes
    PNG               --with-png=yes        yes
  • 3、重新安装。make && make install