Nextcloud cannot open HEIC files

Hi,

Nextcloud can’t open HEIC photos shot on iPhone. This implies that previews are not generated, metadata is not read (in the Nextcloud photos app they all appear as grey, in the current month). This despite PHP correctly supporting HEIC.

I tried to search for various solutions online, but they do not look compatible with Docker.

I am running Nextcloud Hub 9 (30.0.5), installed via TrueNAS Apps, on TrueNAS-SCALE-24.10.2.

Thanks!

1 Like

Following this!
I was about to depart from google photos. And thought Nextcloud would be the successor, but all my HEIC images do not work on this version of Nextcloud unfortunately.

I installed the official Nextcloud app from the “discover apps” in TrueNAS scale. The current version is 31.0.0

I tried debugging the docker container a bit, and I see that it does not come imagemagick installed - which I believe is required for HEIC image decoding.

You should be able to edit the config.php and add this

'enabledPreviewProviders' => array(
    'OC\Preview\PNG',
    'OC\Preview\JPEG',
    'OC\Preview\GIF',
    'OC\Preview\HEIC',
    'OC\Preview\BMP',
    'OC\Preview\XBitmap',
    'OC\Preview\MP3',
    'OC\Preview\TXT',
    'OC\Preview\MarkDown'
),

and this should allow you to generate previews.

For what its worth, I abandoned Nextcloud for photo management / backup a long while ago. This and many other issues made it not great. But Immich is pretty awesome and kind of “just works” if you decide to go an alternative route.

2 Likes