• Hi there,

    I know there is a way to display a button to load more photos. Is there a way or maybe in a future update, to be able to show a second button with the option to load all images of a specific album, gallery, collection.

    Like in my case above. I show 20 pictures, and load more pictures shows another 20, and so on and on.
    Now it would be great, if I could have a button next to it, with the option to load all images of that album instead of keeping pushign load more.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sayontan

    (@sayontan)

    Is there a way or maybe in a future update, to be able to show a second button with the option to load all images of a specific album, gallery, collection.

    There isn’t any way for this, and while I have considered this in the past, I have decided against this due to API rate limiting challenges.

    To explain further, if you build in such a feature, various providers still cripple you in terms of how many photos you can retrieve in a single call (e.g. Instagram has a limit of around 30 or so, Google has 100). If a given album or data set has many photos more than the limit, then clicking a “Load All” button will trigger multiple sequential calls in the background. This causes the provider to lock out the API key on the grounds of making excessive calls. I have had that happen to me for Instagram (it brings down every website that is using Photonic when Instagram blocks me), and it has happened to multiple users of Google Photos when I made a similar change for better handling of listed albums.

    The above causes a significantly degraded user experience – by comparison the repeated pushing of the “Load More” button is a minor annoyance, similar to the clicking of “Next Page” on a blog.

    thanks. Didnt know about the limits, I just thought it would be a cool feature…do you know what the limit is for flickr?

    SO for example the limit is 100 and i set up the gallery to show 200 photos, I/Photonic gets locked out from flickr because of multiple calls?

    Plugin Author Sayontan

    (@sayontan)

    do you know what the limit is for flickr?

    500, I believe.

    SO for example the limit is 100 and i set up the gallery to show 200 photos, I/Photonic gets locked out from flickr because of multiple calls?

    Not exactly – the locking happens if too many calls are made in a short amount of time.

    If the limit is 100 and you set the gallery up to show 200, some providers cap off the count at 100 (e.g. Flickr and SmugMug), and some others give you an error (e.g. Google).

    The limit question comes in if you, say, make 30 calls in parallel. I have had this happen once for Flickr where a user had multiple albums (200+) spread across multiple collections. Flickr’s Collections API is very inefficient, so it cannot return details of albums within it. To effectively display collections, you have to chain calls to each of the nested albums so that you can get the album thumbnails. But if you chain calls in sequence, it takes a long time to get all the results. So the calls are made in parallel… but in this particular case since the user had so many albums, the API key was getting locked out due to exceeding the call limit.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.