How to update Imagick to version 7 (SOLVED)

Discussion in 'Server Operation' started by jjsjjs, Oct 20, 2022.

  1. jjsjjs

    jjsjjs Member

    Hi,
    I've got this error "file is not supported imageArray" only on live server. On local xammp server my script run perfectly.
    Images are converted to jpg. In this case I upload a png which should be converted.
    Had also session faults which are solved now, which I had not on xammp, but had on live server. These are a PITA to solve :)
    I recently added php8.1, so maybe a problem lies there don't know for sure.
    How do I update Imagick to the latest version, maybe it solves the issue?

    I looked on the Perfect Server guide, but it's not mentioned how to update it. Looked also on Imagick site, but I'm not totally getting that.

    The server runs on Ubuntu 20.04.5 LTS.
    Thanks for any help.

    edit--besides updating, I found that uploading a jpg did not give that error, which is strange as it worked before with an PNG uploading. checking with php-info all image types seem supported.
     
    Last edited: Oct 20, 2022
  2. jjsjjs

    jjsjjs Member

  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  4. jjsjjs

    jjsjjs Member

    Thanks Ahrasis, will take a look at this.
     
  5. jjsjjs

    jjsjjs Member

    Ok that worked.
    -The 4 commands at step 2 I had to do one by one, else it gave an error.
    -Then I had to install phpize , and I think I made a mistake here by installing apt-get install php7.4-dev followed this instead of installing a version for php8.1.
    It took 13 minutes somewhat to build.
    Now it says in terminal:
    Code:
    ImageMagick supported formats => 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, JXL, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCbCr, YCbCrA, YUV
    - phpinfo still reports the old version
    -ImageMagick number of supported formats: 0
    So maybe I need to redo it using the correct dev for phpize.
     
  6. jjsjjs

    jjsjjs Member

    Re-did the installation:
    magick module version 3.7.0
    imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version ImageMagick 7.1.0-51 Q16-HDRI x86_64 1cf41df5d:20221013 https://imagemagick.org
    Imagick using ImageMagick library version ImageMagick 7.1.0-51 Q16-HDRI x86_64 1cf41df5d:20221013 https://imagemagick.org
    ImageMagick copyright (C) 1999 ImageMagick Studio LLC
    ImageMagick release date 2022-10-13
    ImageMagick number of supported formats: 26

    It seems to work now. I tried another PNG which is accepted. So I don't get why the first PNG gives an error. Have to find a warning for that which works.

    Thanks so far.
     
    ahrasis likes this.

Share This Page