IacobIonut01 / Gallery

Light-weight Media Gallery app for Android made with Jetpack Compose
Apache License 2.0
1.16k stars 58 forks source link

[BUG] RAW/DNG thumbnails are shown, but not visible in image viewer. #431

Closed tundruh closed 1 month ago

tundruh commented 1 month ago

Describe the Bug RAW/DNG images will show up in Gallery, and the thumbnails/previews are visible. However, viewing the RAW/DNG files results in a blank or blurry background depending on settings. Metadata is still visible (date, time, etc.) and details will still work, but no image.

To Reproduce Steps to reproduce the behavior:

  1. Take a RAW/DNG photo using Open Camera
  2. Navigate to Gallery after taking photo
  3. See preview/thumbnail
  4. Open image viewer
  5. Blank or blurry background, no image present

Expected behavior Opening a RAW/DNG in the viewer will show the full image, identical to the JPG/other file types.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Other gallery apps (i.e. Aves Libre) show the RAW/DNG thumbnail as well as in the image viewer.

IacobIonut01 commented 1 month ago

In my case I can see the RAW image😅, but not correctly. I will investigate but for sure it is an issue with the Subsampling Image library Screenshot_20240718-111944.png

tundruh commented 1 month ago

@IacobIonut01 I should've provided a screenshot of what I see in case that helps. Screenshot_20240718-053034.png Everything else continues to work, like viewing image details and info, but in my case shows the background blur.

Edited for conciseness. Apologies, first time submitting a bug.

IacobIonut01 commented 1 month ago

In my case I can see the RAW image😅, but not correctly. I will investigate but for sure it is an issue with the Subsampling Image library Screenshot_20240718-111944.png

Can you provide a link to a test image?
tundruh commented 1 month ago

@IacobIonut01 Just to clarify, you need a comparison to a working test image vs RAW?

IacobIonut01 commented 1 month ago

@IacobIonut01 Just to clarify, you need a comparison to a working test image vs RAW?

Nah, just send over an example RAW image that causes you the problem

tundruh commented 1 month ago

Nah, just send over an example RAW image that causes you the problem

Sure thing.

I just used this first DNG example from this old blog site.

https://www.kenrockwell.com/leica/m9/sample-photos-3.htm

And the following are what I see when previewing, opening, and "focusing" (when tapping again within the viewer and the metadata and info hide temporarily).

Screenshot_20240718-101116.png

Screenshot_20240718-101119.png

Screenshot_20240718-101124.png

FYI, I also just updated to the latest nightly build and still have this issue.

IacobIonut01 commented 1 month ago

Nah, just send over an example RAW image that causes you the problem

Sure thing.

I just used this first DNG example from this old blog site.

https://www.kenrockwell.com/leica/m9/sample-photos-3.htm

And the following are what I see when previewing, opening, and "focusing" (when tapping again within the viewer and the metadata and info hide temporarily).

Screenshot_20240718-101116.png

Screenshot_20240718-101119.png

Screenshot_20240718-101124.png

FYI, I also just updated to the latest nightly build and still have this issue.

Thanks, I'll get back with the fix

tundruh commented 1 month ago

@IacobIonut01 Just downloaded the nightly from 4 Aug, and RAW is working perfectly!

Thanks for addressing the issue, now I can delete my other gallery apps entirely. Great work, looking forward to what else you accomplish. 👍🏽

IacobIonut01 commented 1 month ago

Thanks! You can close the issue now if all is good