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

Generate Preview for existing files

Let’s generate thumbnail for existing 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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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