HEIC photos unsupported
-
Lychee supports HEIC as of version 4.0.6 and Cloudron is using a more recent version of that. However, HEIC upload is not working for some reason (default photo extension on iOS). The logs when trying to upload show:
2021-02-12 17:43:17 -- error -- App\Actions\Photo\Extensions\Checks::file_type -- 102 -- Photo type not supported: XXXXXXXXXXXX.heic
-
@echokos Can confirm... I tried updating the base image to latest ubuntu to check if fixes the problem but even after installing
libheif
it doesn't work.root@e4e789a3-8c46-4c42-8101-58bd05ad0291:~# php -r 'phpinfo();' | grep Image Imagick compiled with ImageMagick version => ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org Imagick using ImageMagick library version => ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org ImageMagick copyright => © 1999-2019 ImageMagick Studio LLC ImageMagick release date => 20190101 ImageMagick number of supported formats: => 225 ImageMagick supported formats => 3FR, 3G2, 3GP, 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, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, 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, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, 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, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
From what I can make out, we have to build imagemagick 7 from source and compile it with HEIC support. Like https://blog.summercat.com/building-imagemagick-with-heic-support.html
-
@imc67 It seems ubuntu 22 has built-in support for this. So, when we move to Ubuntu 22 base docker image, we will get support for this.
$ convert -list format | grep HEIC AVIF* HEIC rw+ AV1 Image File Format (1.12.0) HEIC* HEIC rw+ Apple High efficiency Image Format (1.12.0)
This will take a bit to first start testing Ubuntu 22 and then moving to it though. No timeline yet.