Core: Thumbnails, libjpeg: recoverable error: Invalid SOS parameters for sequential JPEG

Created on 24 Jan 2016  路  7Comments  路  Source: owncloud/core

Hello,

I have some photos taken from a phone which render fine in gwenview and gimp, but give an error in owncloud. The errors I get in the owncloud.log file is
"imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Invalid SOS parameters for sequential JPEG"

The web UI is unable to show the thumbnail.
The relevant packages i have installed are php56-gd-5.6.17 and jpeg-turbo-1.4.2

Google returned this
golang/go#3916
https://code.google.com/p/go/issues/detail?id=3916

Bug previews sev4-low

Most helpful comment

Workaround:

ini_set ('gd.jpeg_ignore_warning', 1);

See http://php.net/manual/en/image.configuration.php

cc @oparoz

All 7 comments

golang/go#3916

With the image that is linked there I can reproduce the error:

{"reqId":"vFZDhvb9KbRyDLVYHRnt","remoteAddr":"::1","app":"PHP","message":"imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Invalid SOS parameters for sequential JPEG\n at \/Users\/morrisjobke\/Projects\/owncloud\/master\/lib\/private\/image.php#515","level":0,"time":"2016-01-25T08:26:49+00:00","method":"GET","url":"\/master\/index.php\/core\/preview.png?file=%2Fasd%2Fxx.jpg&c=1338e8260789f433aefdda62641e5109&x=64&y=64&forceIcon=0"}

Workaround:

ini_set ('gd.jpeg_ignore_warning', 1);

See http://php.net/manual/en/image.configuration.php

cc @oparoz

Thanks @MorrisJobke . It had already been added to Gallery(+), but would be good to have it enabled in core. Where though?

Sounds good to me :)

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings