Need PHP Pecl to use the newest version of ImageMagick
Currently running whm server 124.0.9 on AlmaLinux 9 and PHP PECL ImageMagick force installs ImageMagick 6.9.31 based on the OS repos, but the problem is that is does not do the HEIC conversion. So I did some research, compiled and installed the latest version of ImageMagick which is 7.1.1-39 that has HEIC support.
I was wondering how I can get the PHP plugin in WHM server to use that version of ImageMagick instead of installing the old version.
-
Hey there! I don't have a workaround at this time, but it does seem like something that would be good to implement to make the conversion process easier. I've created case CPANEL-46061 for our developers to look into this issue, and I've already spoken with the team about it so I'll be sure to post any updates I hear!
0 -
Thanks, I was wondering if maybe uninstalling the imagemagick the script installs and turning off the epel repo would work or at least give me an error.
0 -
That isn't something we test on our end, but you're welcome to try!
0 -
Ok thanks, I will see what I can find out. But please keep me posted on what you find out.
0 -
So, here is what I found out the script will install ImageMagick on the server even though I disabled the epel repo, but if the LD_LIBRARY_PATH is set correctly it will see the new version of ImageMagick despite installing the old version as notated by the ./config log entries below.
However I am trying to validate that it is working as intended.
libs
-L/usr/local/lib -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI
checking if ImageMagick version is at least 6.2.4... found version 7.1.1-39 Q16 HDRI0 -
I did confirm that building the packages from source for ImageMagick, heic, and the other necessary library and setting the LD_LIBRARY_PATH, before either installing or reinstalling the PHP_PECL ImageMagick worked as intended despite it installing the older version of ImageMagick it only used the newest libs based on the specified path.
Perhaps they can implement some logic to not install ImageMagick if all the appropriate libraries are installed and present.0 -
I guess I don't understand what you are looking to change inside cPanel to make this experience better - are you saying we should *not* install ImageMagick under certain conditions?
0 -
We really need HEIC support pls
0 -
Nr0fnm5 - could you submit a request through features.cpanel.net? I also manage that site so I'll bring that up with the team!
0
Please sign in to leave a comment.
Comments
9 comments