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.78k stars 61 forks source link

"Allow deep zooming images" creates artifacts in many images #289

Open Astar114 opened 2 months ago

Astar114 commented 2 months ago

Checklist

Affected app version

1.1.3

Affected Android/Custom ROM version

Android 13 TP1A.220624.014

Affected device model

Redmi Note 11S

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

This bug lowers the quality of most images for no reason lol

  1. Have "Allow deep zooming images" enabled
  2. Open an image
  3. Exit the image or close the app
  4. Open the image again
  5. There's a high chance it will have artifacts and the image will look worse
  6. Clear cache & restart the app
  7. The image will look normal again if you open it

So the bug also seems to be related to the cache

"Show images in highest possible quality" doesn't fix the bug

Expected behavior

When an image is opened multiple times, the image looks as it should and there are no drops in quality.

Actual behavior

When an image is opened for the second time, there are artifacts, the quality of the image is lower than when viewed for the first time. The quality of the image is only restored again after the cache is cleared.

Screenshots/Screen recordings

Video showcasing the bug: bug.zip

Images used in the video: Examples.zip

Additional information

Some images seem to be immune to this bug and I'm not sure why It affects both JPG and PNG