Installing ImageMagick-devel fails on CentOS 8

You need to enable the PowerTools repo. As root:

yum config-manager --set-enabled PowerTools

dnf config-manager --set-enabled PowerTools

Either of those will work as yum redirects to dnf. All of those dependencies are provided by the PowerTools repo.