Join the community today
Register Now

Install How to enable Image Magick?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Lil.Tee, Sep 11, 2015.

  1. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    2:06 PM
    1.11.1
    MariaDB 10
    Hi,
    How to enable Image Magick?
    I'm using Centmin mod on my vps.
    I got an error when I used an addon in my xenforo forums.
    "XenForo_Exception: ImageMagick is not enabled"
    Thanks.
    P/s: Sorry for my bad English.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:06 PM
    Nginx 1.13.x
    MariaDB 5.5
    ImageMagick is enabled and installed by default out of the box via Remi Yum repo if on CentOS 64bit

    Code:
    yum list ImageMagick-last -q
    Installed Packages
    ImageMagick-last.x86_64                                        6.9.2.0-1.el7.remi                                         @remi
    and imagick PHP extension
    Code:
    php --ri imagick
    
    imagick
    
    imagick module => enabled
    imagick module version => 3.3.0RC2
    imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version => ImageMagick 6.9.2-0 Q16 x86_64 2015-08-26 http://www.imagemagick.org
    Imagick using ImageMagick library version => ImageMagick 6.9.2-0 Q16 x86_64 2015-08-26 http://www.imagemagick.org
    ImageMagick copyright => Copyright (C) 1999-2015 ImageMagick Studio LLC
    ImageMagick release date => 2015-08-26
    ImageMagick number of supported formats:  => 222
    ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    
    Directive => Local Value => Master Value
    imagick.locale_fix => 0 => 0
    imagick.skip_version_check => 0 => 0
    imagick.progress_monitor => 0 => 0
    what version of CentOS you using ?
     
  3. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    2:06 PM
    1.11.1
    MariaDB 10
    I'm using CentOS 6.7 x64
    I've checked
    yum list ImageMagick-last -q
    return
    Code:
    Installed Packages
    ImageMagick-last.x86_64                                                                                  6.9.2.0-1.el6.remi       
    php --ri imagick
    return
    Code:
    imagick
    
    imagick module => enabled
    imagick module version => 3.3.0RC2
    imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version => ImageMagick 6.9.2-0 Q16 x86_64 2015-08-26 ImageMagick: Convert, Edit, Or Compose Bitmap Images
    Imagick using ImageMagick library version => ImageMagick 6.9.2-0 Q16 x86_64 2015-08-26 ImageMagick: Convert, Edit, Or Compose Bitmap Images
    ImageMagick copyright => Copyright (C) 1999-2015 ImageMagick Studio LLC
    ImageMagick release date => 2015-08-26
    ImageMagick number of supported formats:  => 219
    ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    
    Directive => Local Value => Master Value
    imagick.locale_fix => 0 => 0
    imagick.skip_version_check => 0 => 0
    imagick.progress_monitor => 0 => 0               
    But still get error in my xenforo forum when I use addon Convert Image | XenForo Community
    Code:
    XenForo_Exception: ImageMagick is not enabled. - library/Andy/ConvertImage/DataWriter.php:19
     
    Last edited: Sep 11, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:06 PM
    Nginx 1.13.x
    MariaDB 5.5
  5. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:06 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  6. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    2:06 PM
    1.11.1
    MariaDB 10
  7. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:06 PM
    Nginx 1.13.x
    MariaDB 5.5
    options => attachments, xenforo defaults to GD not imagemagick unless you select it

    upload_2015-9-11_18-30-16.png
     
  8. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    2:06 PM
    1.11.1
    MariaDB 10
    Thank you, but I still got error
    Code:
    XenForo_Exception: ImageMagick is not enabled. - library/Andy/ConvertImage/DataWriter.php:19
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:06 PM
    Nginx 1.13.x
    MariaDB 5.5
    then you probably need to ask the author of the add on why
     
    • Like Like x 1
  10. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    2:06 PM
    1.11.1
    MariaDB 10
    Thank you for your help, I will ask the author of the addon.
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:06 PM
    Nginx 1.13.x
    MariaDB 5.5
    one thing you can try is running centmin.sh menu option 15 to recompile imagick php extension to see if that helps
     
    • Like Like x 1
  12. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    2:06 PM
    1.11.1
    MariaDB 10
    I fixed my problem. CMOD 777 folder data and internal_data, then when use addon, get error
    Code:
    ErrorException: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set - library/Andy/ConvertImage/DataWriter.php:139
    
    But it's fixed by FAQ item 26
    Once again, thank you very much @eva2000 to create awesome Centminmod.
     
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:06 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  14. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    3:06 PM
    1.11
    10.2
    All my XenForo forums hosted on Centminmod don't have chmod 777 ;).
    It only needs to be own by nginx.
    chown -R nginx:nginx public/
     
  15. Lil.Tee

    Lil.Tee New Member

    24
    1
    3
    Sep 11, 2015
    Ratings:
    +1
    Local Time:
    2:06 PM
    1.11.1
    MariaDB 10
    Can you explain your code for me? I don't understand.
     
  16. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    3:06 PM
    1.11
    10.2
    No need to chmod 777.
    Just issue this command on CLI:
     
  17. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    3:06 PM
    1.11
    10.2
    So all three command:
     
    • Like Like x 1