[Preview Generator] PHP Fatal error

Hello,

When I start the Preview Generator with “sudo -u http php56 occ preview:generate-all”, I get the follow error

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12000 bytes) in /volume1/web/nextcloud/lib/private/legacy/image.php on line 477

The memory size of php is 256M.

Does somebody has any idea?

Tom

Have you tried whether increasing the PHP memory size helps?

I run my pre-generate hourly and always increase the PHP memory limit with PHP_MEMORY_LIMIT=512M php -f /config/www/nextcloud/cron.php (via unRAID User Scripts). I had some issues with 6k JPEGs apparently exceeding the memory limit in some cases.