FossifyOrg / Gallery

Browse your memories without any interruptions with this photo and video gallery
https://www.fossify.org
GNU General Public License v3.0
1.64k stars 54 forks source link

App crash, when opening WEBP files created with XnConvert #320

Open UaE5LeN23DMjGfr opened 2 weeks ago

UaE5LeN23DMjGfr commented 2 weeks ago

Checklist

Affected app version

1.2.1 and below

Affected Android/Custom ROM version

Android 8

Affected device model

Android 8

How did you install the app?

GitHub releases

Steps to reproduce the bug

  1. Install https://www.xnview.com/en/xnconvert/ on Windows.
  2. Transcode any image to a lossy WEBP of any parameter.
  3. Transfer image to Android device.
  4. Fossify Gallery, of any recent vintage and any 'File Loading Priority,' will show the thumbnail, but will crash on decode/enlargement of any WEBP via XnConvert.
  5. You might be thinkin: Well, this is an XnConvert encoder problem. However, theres no "Wild West" of WEBP encoders, and its not a bug for any version of SimpleMobileTools Gallery... its a Fossify Gallery decoding bug that goes way back, and it oddly doesn't apply to decoding for thumbnails.

Expected behavior

The enlarged WEBP loads

Actual behavior

The Application crashes

Screenshots/Screen recordings

No response

Additional information

No response

Aga-C commented 2 weeks ago
  1. Please provide exact device model.
  2. Do you have a stock or custom Android? Also, do you have Android 8 or 8.1?
  3. Are you sure compression parameters don't matter? I've used default ones and Gallery opens that WebP without any issues. Please provide exact parameters you're using in XnConvert.
  4. Can you also share a sample file that doesn't work for you?
UaE5LeN23DMjGfr commented 2 weeks ago
  1. Pending.
  2. Stock. Android 8.
  3. I have tried different compression quality numbers: 75-100. Compression method: 4-6. With and without XnConvert 'actions.' Images open fine on Android SMT Gallery and Windows ImageGlass.
  4. Attached. To note: GitHub doesn't support WEBP as an uploadable. Sample.zip
Aga-C commented 2 weeks ago

This file works on my devices. The issue looks like it's device specific, so please provide your device model (ideally by editing your original request in Affected device model), especially that you have a stock Android.

JamesPous commented 1 week ago

I use XnConvert and XnViewMP every day. Do you use the latest version from September 2024? Both use the latest webp 1.40 version.

Your source pictures are very big and maybe need much ram to open and view them. I usually resize my pictures with XnViewMP or XnConvert to a smaller size for faster loading and viewing. I would recommend a size of 3000 pixels for the longest side. Some android systems work with low ram and it is not possible, that a gallery app crash or can not view big pictures. Can you try other free gallery apps for testing your file? A+ gallery is also a good and fast app for photo viewing.