Excuse me, why do you always have problems with screenshots when installing with Homebrew (brew install imagemagick)?

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...

May.18,2022

Could not resolve host: mirrors.ustc.edu.cn

either there is something wrong with your local DNS settings, or you cannot connect to the public network properly

Menu