memories icon indicating copy to clipboard operation
memories copied to clipboard

Local photos take too long to load

Open thegrasshopper104 opened this issue 1 year ago • 7 comments

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

thegrasshopper104 avatar Jan 22 '24 19:01 thegrasshopper104

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

s4n-cz avatar Jan 29 '24 13:01 s4n-cz

@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:

  • the local folders might be not scanned frequently enough?
  • and in the case of no network: no background scan at all (bc it might wait until there is network?! which would be useless for local pics ofc..)

steadfasterX avatar May 02 '24 08:05 steadfasterX

@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

pulsejet avatar May 04 '24 04:05 pulsejet

@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 avatar May 04 '24 08:05 thegrasshopper104

They are also pixelated in the timeline: Screenshot_20240721-205707

thegrasshopper104 avatar Jul 21 '24 18:07 thegrasshopper104

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

pulsejet avatar Jul 21 '24 21:07 pulsejet

The resolution is 4624x3472 so I think pretty average

thegrasshopper104 avatar Jul 22 '24 08:07 thegrasshopper104