Skip to content

Commit eb4bb2c

Browse files
authored
Merge pull request #15646 from nextcloud/docs/avif-jp2-preview-providers
docs(previews): say what the AVIF and JP2 preview providers need
2 parents 7c780d1 + c9a073e commit eb4bb2c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎admin_manual/configuration_files/previews_configuration.rst‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ and ``OC\Preview\MSOfficeDoc`` require LibreOffice. Image formats handled
3131
through ImageMagick, such as ``OC\Preview\Illustrator``, ``OC\Preview\SVG``
3232
and ``OC\Preview\TIFF``, require the corresponding ImageMagick support.
3333

34+
Installing the ``imagick`` PHP extension is not on its own enough for those providers.
35+
ImageMagick also has to carry the delegate for the format, which is a separate build
36+
option and often a separate distribution package: ``OC\Preview\JP2`` needs the OpenJPEG
37+
delegate, and ``OC\Preview\HEIC`` and ``OC\Preview\AVIFImagick`` need an HEIF one,
38+
usually libheif. A provider whose delegate is missing is never registered, so those
39+
files keep their mimetype icon rather than producing a broken preview.
40+
41+
``OC\Preview\AVIF`` is the one enabled-by-default provider with a build dependency of
42+
its own. It decodes with GD, which handles AVIF only if PHP was built against a libgd
43+
that supports it. Where it was not, enable ``OC\Preview\AVIFImagick`` alongside it:
44+
both answer for AVIF, GD is asked first, and ImageMagick is asked after it if GD
45+
returns nothing.
46+
3447
Parameters
3548
----------
3649

0 commit comments

Comments
 (0)