Install Preview Generator in Nextcloud

To enable preview for files in nextcloud, you need to install “Preview Generator” from next cloud app store

https://apps.nextcloud.com/apps/previewgenerator

To install login to nextcloud as admin. From right drop down menu, click + Apps link.

Nextcloud apps

Once on Apps page, you can use the search button on right side to search for “Preview Generator” and install it.

You need to install some additional software, on ubuntu/debian install it with

Now edit config/config.php file of your nextcloud installation, add following code

For more info on configuration, check nextcloud documenation.

Generate Preview for existing files

Lets generate thumbnail for exiisting files, for this, i enabled shell access for www-data so preview files have proper file ownership (not owned by root).

Now change to www-data user

Now run

nextcloud

Autogenerate Previews for new files

set a cronjob as user www-data

See Nextcloud

Leave a Reply

Your email address will not be published. Required fields are marked *