IMAGICK WITH HEIC (nginx/php)
This write up will cover building ImageMagick with HEIC support and also building pecl's imagick in order to bring that functionality into PHP for use in web applications. A lot of documentation that has been put out on this topic seems to be exclusive to Ubuntu and/or just totally misses the PHP portion. In addition, the RHEL based world just wants to push everyone to OS version 9. I just can't want to right at this moment. So, this write up will cover that hole.
For the sake of brevity, I have already written a document on installing nginx and php, in addition a document on installing libheif. Please work through those write ups before continuing through on this one. You may already have a loaded web server and if so, just make sure that you cover the libheif install. That install gets the components in place that we will need in order to make this next procedure go smoothly (libheif holds the keys to heic).
Here are links to the previous two documents.
NGINX / PHP / MARIADB INSTALL
LIBHEIF INSTALL