Resources slow to create previews

If preview creation takes too long and the system is timing out when creating previews it is usually preferable to set up offline preview creation using the config value below to diable automatic preview creation upon upload:

$enable_thumbnail_creation_on_upload = false;
and then creating a crontab entry/scheduled task to run the script below: