pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.05k stars 82 forks source link

Local photos take too long to load #1013

Open thegrasshopper104 opened 7 months ago

thegrasshopper104 commented 7 months ago

In the Android app, local photos take about 5s to load, and only show a pixelated preview until then. In Google Photos, Files by Google or the camera app they load instantly. Not sure if this is an upstream issue or if Memories could do something about it.

Memories Android 1.6 from the Play Store. Device: Pixel 7a OS: Android 14, kernel 5.10.177-android13-4-00003-ga7208022a7ea-ab10815828

s4n-cz commented 7 months ago

I can confirm the issue on my older Pixel phone as well. Memories 1.6 from Play store

steadfasterX commented 4 months ago

@pulsejet I can confirm that using Memories v1.10.

actually the behavior is as follows:

with network connection:

  1. take a photo with the camera
  2. open Memories - photo is not shown (for me)
  3. waiting some secs: photo is shown (with an indicator icon that it is not uploaded to nextcloud yet - which disappears once done)

without network connection:

  1. take a photo with the camera
  2. open Memories - photo is not shown
  3. waiting long time: nothing happens
  4. closing Memories and re-open: photo is shown

in both scenarios it works instantly (!) when closing Memories and re-open it. No matter if having a network connection or not.

I am not sure but this sounds like:

pulsejet commented 4 months ago

@thegrasshopper104 any difference whatsoever with the latest versions?

without network connection:

As of right now, the behavior here is undefined (I'm surprised it works at all). https://github.com/pulsejet/memories/issues/854

thegrasshopper104 commented 4 months ago

@thegrasshopper104 any difference whatsoever with the latest versions?

without network connection:

As of right now, the behavior here is undefined (I'm surprised it works at all). #854

Pretty much the same in 1.11. Here's a public screencast with my photos...which is maybe not the best idea but anyways (with network connection):

https://github.com/pulsejet/memories/assets/57704946/6a525cf7-7a54-401f-8cf4-cea993757837

thegrasshopper104 commented 1 month ago

They are also pixelated in the timeline: Screenshot_20240721-205707

pulsejet commented 1 month ago

Are the images that are slow to load very high res? They're processed on demand and that could cause the slowdown.

As for the pixelated previews the APIs android provides to get these aren't great, unfortunately. They seem to have different behavior on different devices; this needs more investigation

thegrasshopper104 commented 1 month ago

The resolution is 4624x3472 so I think pretty average