6 min read #OpenCloud#UX

OpenCloud · Previews

More preview formats: HEIC, AVIF and Motion Photos

OpenCloud doesn't want to be a photo manager, but photos should be viewable without a detour. Since 9.0.0, the preview shows HEIC, HEIF and AVIF images when the admin sets up an imagor container as the thumbnail generator; this is off by default. Apple Live Photos play like Motion Photos, with the default configuration from 9.1.0 on. 9.1.0 also brought a reworked EPUB reader and an SVG preview in which embedded code no longer runs.

An iPhone saves photos as HEIC by default. If you put such a photo into a project folder, say a picture of a whiteboard sketch or of damage on a construction site, you expect your colleagues to see it with one click. Up to OpenCloud 9.0.0, the only option for these files was downloading them. The issue about it dates from April 2025 and puts it briefly: HEIC images have no thumbnail, can't be displayed and can only be downloaded. And some e-books didn't open at all: if a book started with an image page, the reader's loading indicator spun forever.

Previews yes, photo management no

OpenCloud's scope document is clear about photos. The focus is on office documents, PDFs and text formats. Media files, meaning audio, video and photos, are explicitly not in focus: you can store them, but OpenCloud doesn't aim to optimize managing them. For photos the document points to Immich, for videos to Jellyfin. Releases 9.0.0 to 9.2.0 don't change that. Albums, face recognition or a timeline are not being added.

The line is drawn at opening a file. A photo, a video or a book that someone puts in a folder belongs to a piece of work there, and whoever works on it wants to look at the file. That shouldn't require downloading anything or converting a format first.

HEIC, HEIF and AVIF with imagor

Since 9.0.0, the preview app opens HEIC, HEIF and AVIF files, including the image sequence variants of HEIC and HEIF. File lists and the sidebar show thumbnails. The file itself stays unchanged; the browser receives a preview image rendered by the server. The .hif extension, which Canon and Sony cameras use for HEIF, is recognized as well.

This is off by default. The OpenCloud image deliberately contains no HEIC decoder; the issue cited the format's licensing situation as the reason. The built-in generator reads JPEG, PNG, GIF, BMP, TIFF and WebP. The extension was made possible by a new thumbnail architecture in 9.0.0: the webdav service sends the image to a generator and gets the scaled-down image back. That generator can be the built-in service or an imagor instance that speaks the same interface.

In an installation with opencloud-compose, it's enough to append thumbnails/imagor.yml to the COMPOSE_FILE variable in .env and run docker compose up -d. The module starts imagor in an internal network without internet access and sets two values: WEBDAV_THUMBNAILS_GENERATOR_URL points to imagor, and OC_THUMBNAILS_ADDITIONAL_SOURCE_TYPES lists the additional formats. If you run OpenCloud differently, set these two variables yourself. Thumbnails are created on first access, so HEIC files uploaded earlier get them too.

Tile view of the folder “Site North” with four files IMG_4711.HEIC to IMG_4714.HEIC. Instead of thumbnails, each tile shows only a generic image icon.

Without imagor (default): HEIC files appear only with an icon (9.1.0).

The same folder with imagor as the generator: the four HEIC tiles show thumbnails of whiteboard sketches, such as a floor plan and a timeline.

With thumbnails/imagor.yml: the same files with thumbnails (9.1.0, test images).

The limits: the generator doesn't process images larger than 7680 × 7680 pixels, nor animations with more than 100 frames. For the built-in generator, these are the defaults of THUMBNAILS_MAX_INPUT_WIDTH and THUMBNAILS_MAX_INPUT_HEIGHT; in the compose module they are hard-coded for imagor. If the server has no generator that can read a format, OpenCloud offers the file for download as before instead of opening an empty viewer. In vaults with end-to-end encryption, the server only has encrypted data, so the browser decodes the image. In that case only Safari displays HEIC; other browsers report that they can't display the file.

Dialog “No preview available for »IMG_4711.HEIC«” with the text “There is no preview available for this file. Do you want to download it instead?” and the “Download” button.

Without a suitable generator, OpenCloud offers the HEIC file for download (9.1.0).

Live Photos, e-books and more in the viewer

OpenCloud has played Motion Photos from Android devices since 8.0.0. 9.0.0 added Apple Live Photos. A Live Photo consists of two files, a still image and a .mov video, which belong together through a shared identifier in the metadata. Apache Tika version 4 or later reads this identifier during indexing. The still image gets a play icon in the file list and plays in the tile view, the sidebar and the preview. The video remains a separate file: if you move the photo, the video doesn't move with it. In 9.0.0, the proxy's default security policy still blocked playback; only since 9.1.0 does it work without adjustments.

The EPUB reader already had full screen, search and its own mobile view before 9.0.0. In 9.1.0 it was reworked. On a smartphone you now turn pages with a swipe, and the chapter list can be shown and hidden and indents nested chapters. Books it can't render show an error message instead of the endless loading indicator; if a book starts with an image page, the reader begins at the first page it can render. Fixes include wrongly highlighted chapters, a reading position that resumed one page too early, and page breaks that shifted when the sidebar opened.

EPUB reader at smartphone width: swiping pages forward and back, the chapter list shows subchapters like “1.1 The north building” and jumps to “2.1 Floor plans” (9.1.0, test book).
Open file “Broken_Manual.epub”; instead of a loading indicator, the center reads “The book could not be opened.”

A broken book shows a message instead of an endless loading indicator (9.1.0).

Since 9.1.0, the preview shows SVG files as images instead of embedding them in the page. Before, a crafted SVG file could run code in the web interface or change its appearance. As an image, the browser runs no scripts in it and loads nothing from outside.

Preview of the file “Floor_Plan.svg”: a simple floor plan with the rooms “Reception”, “Meeting”, “Stairs” and “Open office”, at the bottom the viewer toolbar with “1 of 1”.

An SVG file in the preview, displayed as an image (9.1.0).

9.0.0 also brought a few smaller changes. You can zoom images with Ctrl or Cmd and the mouse wheel, and with a two-finger gesture on a trackpad. The viewer preloads the next and previous image, which you notice when paging through a folder with the arrow keys; Erik Tews from the community wrote that contribution. MKV videos open in the preview as far as the browser can play them. Since 9.1.0, video and audio files that can't be played show an error message instead of a player stuck at 0:00.

Zoom into a sketch with Ctrl and the mouse wheel, then page on with the arrow key: the next images are already preloaded (9.1.0, HEIC test images with imagor).
Preview with a red icon for a damaged file and the message “Failed to load” with the file name “Site_Tour.mkv”.

A video the browser can't play shows a message instead of a player at 0:00 (9.1.0, Chromium, MKV with H.265).

Sources