Error while generating thumbnails with previewgenerator

Hi there.
I followed this thread to install and setup preview generator and the the newest gallery app from the git repository.

Unfortunately I run into an error while generating previews. I tried to restart the process multiple times, without success.

I run the following command:

/var/www/nextcloud$ sudo -u www-data php -f /var/www/nextcloud/occ preview:generate-all
[sudo] Passwort für X:
PHP Fatal error:  imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: JPEG datastream contains no image in /var/www/nextcloud/lib/private/legacy/image.php on line 538  

I am not shure how to interpret the error and kindly ask you for help.

System information:
Ubuntu 16.04 LTS
Nginx, MySQL, PHP-FPM

How is the file size of that image?

Hey Sanook,
thanks for your reply. Where do I find the path of the image? In which file is this process logged?

Did you update to newest version of preview generator?

Does the nextcloud log show some related error? If not you could try to browse via files app in web ui your pictures to force the error. Usually the nextcloud log shows which file exactly produce it. There are some errors reported about certain special file types/picture formats where the previews can not be produced correctly yet.