-
Notifications
You must be signed in to change notification settings - Fork 58
Unsupported JPEG stops the Gallery App from showing pictures #210
Comments
This is an issue with the code in server, but I don't think anybody can do anything about it. |
Hello, there are two problems. Problem 2) Greetings |
That's what we do, but when PHP generates a fatal error, everything stops. |
I did some research on this topic, and I found, that the wrong error handling seems to occur on a lower level: When trying to load / convert images that cause the above error with other tools like "gimp" or "jpegtran" I get very similar errors. So I guess the error is located somewhere deep in a basic (jpeg?) library ... In my case the error is often caused by panorama photos taken by my smartphone. My environment: |
This issue happens for me as well. I try to generate all thumbnails and the job always fails at the same folder (or lets say at the same photos) being processed.
Are there any news? |
Hi I just did a little more research on this topic, and to me it looks like libjpeg-turbo/libjpeg-turbo@b0971e4 Unfortunately it also mentions that the problem could be hard to fix without API changes. Note:
|
It was mentioned above that this bug was fixed in the gd library, however libgd/libgd#380 Fix (proposed): I just build 2.2.4 Ubuntu packages with this fix included. Currently running
I'll report here about the results once it's finished. |
The above fix to libgd does not solve this problem: Replacing libgd with version 2.2.4 (and fix) on Ubuntu 16.04 still fails on certain images (Galaxy S7 panorama). If there's some other patch to try, please let me/us know. |
For panorama pictures created using a Galaxy S7 the file format can be fixed (in many cases) using this script: https://gist.github.com/bcyrill/e59fda6c7ffe23c7c4b08a990804b269 Make sure to read the comments and apply the changes mentioned there (otherwise this will not work for new panorama fotos as the format changed during one of the recent android updates) And make sure to have a backup of your files before trying! |
Thanks! It works for me. It's not perfect, but I can use gallery app. |
In this thread #1732 they talk about other libraries like ImageMagick. As it is insecure, GraphicsMagick was proposed. Maybe GraphicsMagick has less of these issues? Can someone try to use GraphicsMagick to generate a preview of the same problematic image? Or is this not really easy to test? |
Same problem here. What can we do here? I incur the problem when issuing |
Would it help to wrap the conversion into its own subprocess/thread? |
I am having this issue as well. It seems that it is indeed the Galaxy S7 Edge panorama photos causing the issue. |
I would like to create all previews with cmdline but can't, because my Samsung S4 Mini photos make the process crash: What is the status on this? The gallery app is for no use, if I have to wait for the previews all the time... |
The workaround given by @linuxrrze still works but it might be necessary to slightly modify the script so that it also supports newer versions of the panorama images as described here, This can be done by using the version string |
Bug report
Unsupported JPEG stops the Gallery App in the grid view from showing pictures after the unsupported one.
Steps to reproduce
Expected behaviour
Show all pictures. If some pictures are not supported then just skip them.
Actual behaviour
Only pictures till the unsupported one are shown. The spinner which indicates that the unsupported JPEG is being processes stays forever.
Server configuration
Operating system:
Debian Jessie
Web server:
nginx
Database:
MariaDB
PHP version:
5.7 (from Debian Stretch)
cloud server: Nextcloud or ownCloud
Nextcloud
cloud version: (see admin page or version.php)
11.0.1
Updated from an older installation or fresh install:
Updated
List of activated apps:
Gallery App, ...
The content of config/config.php:
Are you using external storage, if yes which one: local folder, smb share, sftp, etc.
no
Are you using encryption: yes/no
no
Are you using custom gallery.cnf config files: yes/no
no
Web server error log
none
Cloud log
imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Unsupported JPEG process: SOF type 0xc8 at /var/www/nextcloud/lib/private/legacy/image.php#538
imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Unsupported marker type 0xf3 at /var/www/nextcloud/lib/private/legacy/image.php#538
Client configuration
Browser:
Firefox
Operating system:
Windows 7
Browser log
None
The text was updated successfully, but these errors were encountered: