HEIC-Support ImageMagic

Hello,
does anybody know how to enable HEIC support within Imagemagick for NextCloud?

I only found this source: https://eplt.medium.com/5-minutes-to-install-imagemagick-with-heic-support-on-ubuntu-18-04-digitalocean-fe2d09dcef1

I am not sure how to adapt this to NethServer.

ps.: Perhaps this procedure? https://community.spiceworks.com/topic/287949-installing-imagemagick-for-php-on-centos