previewgenerator
previewgenerator copied to clipboard
Preview generator was run successful, but android app still very slow
What is the setting for only generate preview for android app photo?
Im also having the same problem , android app is useless if its soo slow.
same here
Hi,
This issue lacks enough detail to be of any use. Some things that might be interesting to add to make it easier to figure out if there are any issues with this plugin would be:
- What's your setup? Is in apache/mod_php, nginx/php-fpm, what have you...
- How did you go about to encounter this issue? Did you add a bunch of new files and ran the pre-generate method and noticed that it was still slow? Or did you do it some other way?
- Is the new situation better or worse than the previous setup?
Writing a decent bug report can be tricky until you're used to it. Reports like this is not very helpful as it doesn't contain any information, and for a developer doing this for fun (and probably not for profit) it is very tiresome to handle bugs like this.
I'm not the plugin author, I just want to help him/her with some boring chores like handling bugs like this.
Same here...
Same here
Since we are still missing some context here:
Using preview generator on a Nextcloud 16.0.4 running on a Raspberry Pi 3 with Raspbian.
After generating all the previews using generate-all
all the preview images of an image folder load really fast on the Nextcloud Web Interface (whoop whoop really nice).
On the Android App the previews of an image folder still take ages to load.
Both devices were on the same WIFI. Both not in the same network as the Raspberry.
Any idea what causes this? I found this related issue: https://github.com/nextcloud/android/issues/2850
This issue lacks enough detail to be of any use.
Well. I guess it is self evident for anyone with more than 10 pictures and using the Android app.
But yes, it is extremely slow. It loads photos very slowly even if all thumbnails are pre-generated with the preview app. I guess it simply downloads one thumb at the time with a lot of timing issues in between each file.
I looked at the code in this project, and it does not seem to use the existing EXIF thumbnails... or am I wrong? Something similar..
https://github.com/nextcloud/android/issues/2850#issuecomment-552827679
The problem with slow loading of image previews in the Android application persists to this day. Nextcloud Server 21.0.3 and Nextcloud 22.0.0. Nextcloud App for Android 3.16.1
Google Pixel 3 smartphone, Android 11.
Slowly works over wifi in the local network with the Nextcloud server, and over the LTE network.
Preview is incredibly slow on Android app. Browser is much faster. Some people mentioned Tha with IPhone it works better.
I can confirm this issue. The previews are (pre-)generated correctly and load very quickly in the browser. However, they load slowly on the Android app, much like they are generated on demand.
Have you checked which sizes are generated on server and which are requested via Android? You can see this via nextcloud.log.
This params in config.php works for me
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'preview_max_scale_factor' => 1,
For me this exact settings did not work. The app seems to request a square preview of 256x256, which the previewgenerator does create. The app also seems to request a preview with width preview_max_x
and one with height preview_max_y
. Since the previewgenerator only considers sizes that are powers of 4 starting from 64 (64, 256, 1024, 4096, ...), the only sensible setting that works for me is preview_max_x == preview_max_y == 1024.