Please update imagemagick ebuild against modular xorg. A small patch to apply to 6.2.5.2 ebuild follow Thanks
Created attachment 71785 [details, diff] patch for modular xorg against imagemagick-6.2.5.2.ebuild
Fixed, thanks.