Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Configuring Imagemagick with lcms2

Discussion in 'EasyApache' started by alanski, Sep 27, 2018.

Tags:
  1. alanski

    alanski Registered

    Joined:
    Dec 16, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
    #1 alanski, Sep 27, 2018
    Last edited by a moderator: Sep 27, 2018
  2. alanski

    alanski Registered

    Joined:
    Dec 16, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  3. Reado

    Reado Well-Known Member

    Joined:
    Sep 8, 2009
    Messages:
    214
    Likes Received:
    8
    Trophy Points:
    68
    Location:
    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
     
    #3 Reado, Oct 4, 2018
    Last edited by a moderator: Dec 12, 2018 at 2:31 AM
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I've marked this thread as solved.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Nick Fenwick

    Nick Fenwick Registered

    Joined:
    Sep 28, 2018
    Messages:
    3
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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
     
    #5 Nick Fenwick, Dec 11, 2018 at 10:51 PM
    Last edited by a moderator: Dec 12, 2018 at 2:34 AM
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice