memories/docs/file-types.md

50 lines
1.5 KiB
Markdown
Raw Normal View History

---
description: Steps to configure support for different image and video formats
---
# File type support
Memories supports the file types supported by the Nextcloud previews app. File type support is determined in part by the values listed in the `enabledPreviewProviders` configuration parameter in your configuration file. If your `config.php` does not contain an `enabledPreviewProviders` array, this means you are using Nextcloud's defaults. Copy the array over from `config.sample.php` before adding any of the values below, or else you will effectively disable all of the defaults.
If you add support for any one of the file types below, you must run `occ memories:index` to index these files.
## Common Formats
```
PNG (image/png)
JPEG (image/jpeg)
GIF (image/gif)
BMP (image/bmp)
```
These are enabled by inclusion of the following values in `config.php`'s `enabledPreviewProviders` array:
```php
'OC\Preview\Image',
```
## HEIC and TIFF
These are enabled by inclusion of the following values in `config.php`'s `enabledPreviewProviders` array:
```php
'OC\Preview\HEIC',
'OC\Preview\TIFF',
```
You must also install Imagemagick (included in the official Nextcloud docker image).
## Videos
These are enabled by inclusion of the following value in `config.php`'s `enabledPreviewProviders` array:
```php
'OC\Preview\Movie',
```
You must also install `ffmpeg` and add the video config to `config.php`.
## RAW images
Install the [camera raw previews](https://github.com/ariselseng/camerarawpreviews) app from the Nextcloud app store.