ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.12k stars 1.56k forks source link

[iOS] Gallery opens slow when lots of photos/albums on device #1382

Open trackwell-mike opened 4 years ago

trackwell-mike commented 4 years ago

Version

Platform

Expected behaviour

Image gallery should open within a reasonable amount of time, even if a large number of photos exist on the user's device (my guess is this is the source of the problem).

Actual behaviour

Gallery takes up to 2 minutes to load. Once it is open, navigating between the different galleries on the user's device is extremely slow/delayed on the UI.

When tested on a device with much fewer photos (ie. iOS Simulator), it functions at an expected speed.

Steps to reproduce

  1. Start with an iOS device with lots of photos and lots of albums. (My device has 46k photos/videos, across probably 30+ albums)

  2. Run ImagePicker with default settings. (I am not enabling includeBase64, so that is not the issue)

mitesh-db commented 4 years ago

@trackwell-mike I can understand the problem, It's really frustrating for application users. Until you find any working solution, try to put ActivityIndicator or some kind of Loder when opening picker, and hide it when you get response or error, so user will think gallery is being load. And if you find out something helpful solution to overcome this problem, you can share here!

trackwell-mike commented 3 years ago

This doesn't appear to be a popular issue, but we still are experiencing it. 

@ivpusic I'm curious if you've seen this type of issue before?

hmolotsi commented 3 years ago

A user of our app just reported this issue. She has >68K images on her phone. It takes >10 seconds to load the gallery.

mrsteveh commented 2 years ago

And....still no solution?

renahlee commented 1 year ago

Hi there! Chiming in that I am also seeing reports of significant delay with a user who has over 68k images. (CC: @pfrazee)

oem2 commented 1 year ago

I al experiencing the same issues. I have just shy of 25k photos and videos and the gallery takes around 3-5 seconds to load. Also selecting photos is slow as well.