Gallery+ Preview issues

Hi,

I have a issus in the Gallery+ app.
I have some pictures in a folder, and the thumbnails are generatet, but only the normal pictures. I have some panorama pictures and they get no thumbnail and i can’t open them.
I get the error message: "Fehler! Konnte keine Vorschau dieser Datei erzeugen. Bitte wechsel zum nächsten Bild, während im Hintergrund das Bild aus der Diashow entfernt wird.

Have someone an idea, what is the problem?

Thank you very much.

Lars

I found this:

‘preview_max_filesize_image’ => 50,

max file size for generating image previews with imagegd (default behaviour)
If the image is bigger, it’ll try other preview generators,
but will most likely show the default mimetype icon
Value represents the maximum filesize in megabytes
Default is 50
Set to -1 for no limit

But this don’t solve my problem :slight_frown:
All pictures without a preview are bigger 20MB. The preview by the smaller one works fine…

Here are the Logs I found:

Error					
					
						index					
					
						Exception: 
{"Exception":"OC\\PreviewNotAvailableException","Message":"SVG mimetype 
cannot be rendered","Code":0,"Trace":"#0 
\/var\/www\/nextcloud\/lib\/private\/Preview.php(809): 
OC\\Preview->getMimeIcon()\n#1 
\/var\/www\/nextcloud\/core\/ajax\/preview.php(66): 
OC\\Preview->showPreview()\n#2 
\/var\/www\/nextcloud\/lib\/private\/Route\/Route.php(155) : 
runtime-created function(1): require_once('\/var\/www\/nextcl...')\n#3 
[internal function]: __lambda_func(Array)\n#4 
\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php(293): 
call_user_func('\\x00lambda_41', Array)\n#5 
\/var\/www\/nextcloud\/lib\/base.php(983): 
OC\\Route\\Router->match('\/core\/preview.p...')\n#6 
\/var\/www\/nextcloud\/index.php(48): OC::handleRequest()\n#7 
{main}","File":"\/var\/www\/nextcloud\/lib\/private\/Preview.php","Line":1188}
					
					
						2016-10-06T09:06:57+00:00					
					Lars
				
							
					
						Error					
					
						PHP					
					
						imagecreatefromjpeg(): 
'/mnt/Bilder/Bilder_MCE/20160910_Chur_Korsika_Davos/20160924_114627.jpg'
 is not a valid JPEG file at 
/var/www/nextcloud/lib/private/legacy/image.php#516					
					
						2016-10-06T09:06:56+00:00					
					Lars
				
							
					
						Error					
					
						PHP					
					
						imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Unsupported marker type 0x72 at Unknown#0					
					
						2016-10-06T09:06:56+00:00					
					Lars
				
					ErrorPHPimagecreatefromjpeg():
 
'/mnt/Bilder/Bilder_MCE/20160910_Chur_Korsika_Davos/20160924_114627.jpg'
 is not a valid JPEG file at 
/var/www/nextcloud/lib/private/legacy/image.php#5162016-10-06T09:06:56+00:00LarsErrorPHPimagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Unsupported marker type 0x72 at Unknown#0

I suppose your panorama pictures are not SVG?

What system are you using? Which php-version (can you provide an output of phpinfo())? Which version of the GD-library?
Regarding the logfiles it would be interesting to see the errors during your upload (cross check with webserver log- and error-file). Can you monitor the processes during the upload?