Nextcloud docker compose setup with Caddy (2024)

Hi @estebanium,

this is not correct what you did here:

  • OC\Preview\Imaginary
    Imaginary supports these MIME types:
    • image/bmp
    • image/x-bitmap
    • image/png
    • image/jpeg
    • image/gif
    • image/heic
    • image/heif
    • image/svg+xml
    • image/tiff
    • image/webp
    • application/illustrator
    • application/pdf (NC < 30)

and

  • OC\Preview\ImaginaryPDF (since NC 30)
    • application/pdf

so the legacy preview providers

  0 => 'OC\\Preview\\PNG',
  1 => 'OC\\Preview\\JPEG',
  2 => 'OC\\Preview\\GIF',
  3 => 'OC\\Preview\\HEIC',
  4 => 'OC\\Preview\\BMP',
  5 => 'OC\\Preview\\XBitmap',

and

  13 => 'OC\\Preview\\PDF',

… are not only no longer necessary but should also no longer be used if Imaginary is used and you want to take full advantage of its performance.

And then there is the preview provider

  9 => 'OC\\Preview\\Movie',

but there are no

  10 => 'OC\\Preview\\MKV',
  11 => 'OC\\Preview\\MP4',
  12 => 'OC\\Preview\\AVI',

preview providers. You probably thought them up yourself but they don’t exist so those lines don’t do anything.

You can read more details about preview providers β†’ here ← , where I explained it more in deep.

h.t.h.


Much and good luck,
ernolf