Nextcloud Photos on Alpine Linux: Missing App and Empty HEIC Thumbnails
Why the Photos app was missing from a Nextcloud 33 installation in an Alpine Linux LXC container on Proxmox, and what it took to get thumbnails for iPhone HEIC images.
I installed Nextcloud 33 as an Alpine Linux LXC container on Proxmox VE with a script from Community Scripts. The installation went smoothly: I could open the web interface, upload files and organize them in folders.
Problems started when I wanted to use Nextcloud as a place to browse photo collections:
- The Photos app was missing.
- After installing it, thumbnails for HEIC images stayed empty.
Both came from Alpine’s packaging and its image-processing setup, not from Nextcloud’s file storage.
Photos app missing
After uploading a few photo folders, I wanted a gallery instead of the plain Files view. There was no Photos entry in the navigation bar, and the app management page didn’t list it either.
On the container console I checked whether Nextcloud knew the app at all:
cd /usr/share/webapps/nextcloud
su nextcloud -s /bin/sh -c \
'php85 occ app:list' | grep -i photos
No output. Installing it through occ failed as well:
su nextcloud -s /bin/sh -c \
'php85 occ app:install photos'
Error: Could not download app photos,
it was not found on the appstore
The app directory was missing, while its neighbor, the Viewer app, was there:
ls -ld /usr/share/webapps/nextcloud/apps/photos
ls: /usr/share/webapps/nextcloud/apps/photos:
No such file or directory
ls -ld /usr/share/webapps/nextcloud/apps/viewer
So the Photos files were simply not on disk. Alpine splits several Nextcloud apps into separate packages, so I searched the repository instead of downloading anything from GitHub:
apk search '*-photos' | grep nextcloud
nextcloud32-photos-32.0.15-r0
nextcloud33-photos-33.0.10-r0
Alpine ships a separate package per Nextcloud major version, so I checked which one is installed:
apk info -e nextcloud32 nextcloud33
nextcloud33
Fix: install the matching package
apk add nextcloud33-photos
cd /usr/share/webapps/nextcloud
su nextcloud -s /bin/sh -c \
'php85 occ app:enable photos'
After a reload, Photos showed up in the navigation bar and picked up the files I had already uploaded.
If an app that normally ships with Nextcloud is missing on Alpine, check apk search before the App Store, and take the package that matches your Nextcloud major version.
HEIC thumbnails stay empty
The gallery now opened and sorted the images by date, but some thumbnails were just empty, light placeholders. The affected collection was from April 2022 and came from an iPhone. Sample photos from November 2026 displayed fine, so I suspected the HEIC format.
Nextcloud stores HEIC files like any other file. Showing a thumbnail is a different job: the server has to decode the image, which needs several layers to work together:
| Component | Purpose |
|---|---|
| PHP GD, EXIF | Image handling and metadata |
| PHP Imagick | PHP binding for ImageMagick |
| ImageMagick | Decoding and conversion |
| libheif / HEIC delegate | HEIC decoding for ImageMagick |
OC\Preview\HEIC | Nextcloud preview provider for HEIC |
Having Imagick installed doesn’t mean ImageMagick can read HEIC.
Diagnosis
The PHP extensions were all there:
php85 -m | grep -Ei 'imagick|gd|exif'
exif
gd
imagick
ImageMagick, however, didn’t know the format:
magick identify -list format | grep -i HEIC
No output. The Alpine packages explained why:
apk info -e \
php85-pecl-imagick \
imagemagick-heic \
libheif
php85-pecl-imagick
Only the Imagick extension was installed; the HEIC parts were missing.
Fix: add HEIC support
apk add imagemagick-heic libheif
Then repeat the format check; this time it should list HEIC:
magick identify -list format | grep -i HEIC
Enable the HEIC preview provider
Nextcloud doesn’t generate HEIC previews by default; OC\Preview\HEIC is among the providers that are disabled by default because of performance and privacy concerns. First look at what is configured:
su nextcloud -s /bin/sh -c \
'php85 occ config:system:get enabledPreviewProviders'
If the list is empty, Nextcloud uses its defaults. Setting enabledPreviewProviders replaces that list instead of extending it, so any provider you still want has to be listed again. If you already have a custom list, append OC\Preview\HEIC at the next free index rather than overwriting an entry. For an empty list, a minimal setup looks like this:
su nextcloud -s /bin/sh -c \
"php85 occ config:system:set enabledPreviewProviders 0 --value='OC\\Preview\\PNG'"
su nextcloud -s /bin/sh -c \
"php85 occ config:system:set enabledPreviewProviders 1 --value='OC\\Preview\\JPEG'"
su nextcloud -s /bin/sh -c \
"php85 occ config:system:set enabledPreviewProviders 2 --value='OC\\Preview\\HEIC'"
Add the other default providers you rely on in the same way. Then restart PHP-FPM:
rc-service php-fpm85 restart
After refreshing the gallery, the HEIC thumbnails appeared, and the original files were untouched.
HEIC decoding processes files that may come from untrusted sources, so keep Nextcloud, ImageMagick and libheif patched (apk upgrade).
Summary
Two missing pieces in an otherwise working installation:
apk add nextcloud33-photos
apk add imagemagick-heic libheif
Plus the HEIC preview provider in config.php. The lessons:
- Apps that ship with Nextcloud can be separate packages on Alpine. Match the package to your major version (
nextcloud33-photosfor Nextcloud 33). - A present PHP Imagick extension says nothing about HEIC; check ImageMagick’s format list separately.
- Storing a file and previewing it are separate capabilities. With server-side HEIC support there’s no need to convert a photo library to JPEG just for the browser.
If a Nextcloud gallery on Alpine shows missing apps or blank thumbnails, check these two things before digging into permissions, database indexes or corrupted files.
Environment: Proxmox VE, Alpine Linux LXC, Nextcloud 33, PHP 8.5.