My understanding is that libpng requires zlib. From MacPorts
"libpng 1.6.21
Library for manipulating PNG images
Licenses: zlib
Maintained by: ryandesign
Categories: graphics
Platforms: darwin freebsd linux openbsd sunos
Dependencies:
xz zlib "
Try installing these ports first, then install Imagemagick again. See if that works.
Otherwise, do what I do. Install all my desired ports and then install IM from source. See
viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202
You might want to install other ports that IM uses often. See my list below with the red ones.
convert -version
Version: ImageMagick 6.9.3-10 Q16 x86_64 2016-05-04
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License:
http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in):
bzlib cairo fftw
fontconfig freetype gslib jbig jng jp2
jpeg lcms lqr ltdl lzma openexr
png ps rsvg tiff webp
x xml zlib
Note gslib is Ghostscript, which is needed for reading PDF files