Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Lychee
  3. HEIC photos unsupported

HEIC photos unsupported

Scheduled Pinned Locked Moved Lychee
6 Posts 4 Posters 1.8k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    echokos
    wrote on last edited by
    #1

    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
    
    girishG 1 Reply Last reply
    0
    • E echokos

      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
      
      girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote on last edited by
      #2

      @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

      M 1 Reply Last reply
      0
      • girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by
        #3

        I opened https://git.cloudron.io/cloudron/lychee-app/-/issues/4

        imc67I 1 Reply Last reply
        1
        • girishG girish

          @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

          M Offline
          M Offline
          muewe96
          wrote on last edited by
          #4

          @girish Same in Nextcloud. In Nextcloud ImageMagick is used to render the preview for the images. At the moment this does not work with the Cloudron Nextcloud pp. But your solution should solve this too 🙂

          1 Reply Last reply
          0
          • girishG girish

            I opened https://git.cloudron.io/cloudron/lychee-app/-/issues/4

            imc67I Online
            imc67I Online
            imc67
            translator
            wrote on last edited by
            #5

            @girish any news? Also in Nextcloud and probably all other file and photo apps on Cloudron HEIC is not working because of Cloudron core (apps do support it it seems).

            girishG 1 Reply Last reply
            0
            • imc67I imc67

              @girish any news? Also in Nextcloud and probably all other file and photo apps on Cloudron HEIC is not working because of Cloudron core (apps do support it it seems).

              girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #6

              @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.

              1 Reply Last reply
              2
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search