SOLVED Configuring Imagemagick with lcms2

alanski

Member
Dec 16, 2015
7
0
51
Brighton, UK
cPanel Access Level
Root Administrator
CENTOS 7.5 <EXTERNAL LINK REMOVED>, Easy Apache 4 php 7.1

I have Imagemagick running fine. However it is missing the lcms2 library that lets it utilise icc color profiles.

The default rpm does not seem to include it. I have installed lcms via rpm install and attempted imagemagick reinstall hoping magically it would get processed or built with the library if available. No luck

How can I add lcms delegate/library to my current imagemagick install?
 
Last edited by a moderator:

alanski

Member
Dec 16, 2015
7
0
51
Brighton, UK
cPanel Access Level
Root Administrator
SOLVED: I just downloaded ImageMagick 7 rpms via cmd line wget, installed with yum, and then reinstalled the PECL Imagemagick extension wrapper and restarted php-fpm. PDF to jpg with php now works with 99% color accuracy.
 

Reado

Well-Known Member
Sep 8, 2009
252
14
68
United Kingdom
cPanel Access Level
Root Administrator
Just so you know the version of ImageMagick available via the standard repos is still an outdated version, or at least it was for me on CentOS 7 the last time I checked. However you can obtain the latest version via YUM by using the Remi Repository. The repository is usually updated within a few days after a new release of ImageMagick.

More information available here: blog.remirepo.net/pages/Config-en
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

I've marked this thread as solved.

Thanks!
 

Nick Fenwick

Member
Sep 28, 2018
17
3
3
Bangkok
cPanel Access Level
Root Administrator
FYI I found alanski's description of the steps impossible to follow because of my inexperience with PECL modules, so went through the same learning curve to arrive at the same conclusion. Hopefully it will help others to find a more complete set of instructions: New Thread - ImageMagick 7 with PHP bindings

# yum remove ImageMagick
-- Install the remi repositories, perhaps by following the config wizard at rpms.remirepo.net/wizard but don't install any packages from them except this one (and its dependencies):
# yum --enablerepo=remi install ImageMagick6-devel
-- Go to WHM control panel as described here https://documentation.cpanel.net/displa … s/PHP+PECL and click 'reinstall' for the imagick PECL.
-- restart httpd with:
# /scripts/restartsrv_apache_php_fpm
# /scripts/restartsrv_httpd
 
Last edited by a moderator:
  • Like
Reactions: cPanelMichael