brew install imagemagick
Installing dependencies for imagemagick: libpng, freetype, jpeg, libomp, libtiff, libtool, little-cms2, openjpeg, webp and xz
==> Installing imagemagick dependency: libpng
==> Downloading https://mirrors.ustc.edu.cn/h...
curl: (6) Could not resolve host: mirrors.ustc.edu.cn
Error: Failed to download resource "libpng"
Download failed: https://mirrors.ustc.edu.cn/h...
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sourceforge...
curl: (28) Resolving timed out after 5546 milliseconds
Trying a mirror...
==> Downloading https://sourceforge.mirrorser...
curl: (28) Resolving timed out after 5536 milliseconds
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "libpng"
Download failed: https://sourceforge.mirrorser...