web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Increase Efficiency Of...
Power Apps
Unanswered

Increase Efficiency Of Images Loading In Gallery

(0) ShareShare
ReportReport
Posted on by 14

I've got an app with a main page that consists largely of a image-based gallery sourced from a SharePoint list.  Click on a picture and it pops over to a page with information about that item, and a Back button to get back to the gallery.  Pretty simple.  The SharePoint list is imported into a collection on startup of the app, the images are stored in a image library in SharePoint, and each entry in the list has a column with the hyperlink to the corresponding image.  This all works as I want it to in the app, but the problem is that the loading of the images is often slow.  On startup, I'm willing to accept a little delay, but every time the user navigates away from and back to the gallery page, all of the images have to reload and it can take a couple seconds; the images are basically thumbnails (200x200 jpegs) but there are about 200 entries.  I imagine that despite everything still being loaded into a collection at the beginning, it still has to pull the image information in from SharePoint every time, which is what causes the delay.

Most of the help articles and discussion topics I found are generally concerned with taking images from Power Apps to SharePoint, not the other way around.

Is there a way to have the images themselves loaded into the app locally on startup (into a collection, importing a media library, or something) so that it's not having to pull them in from SharePoint every time?  Or is there a way to keep the gallery page loaded in the background so that it doesn't feel the need to refresh every time someone navigates away and back to it?  Or is there some other way that I should be managing my gallery with these images that would improve the load time?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    Hi @Trachypithecus ,

    Rendering the image with a hyperlink will always be slow as there is a server call on each item.

    In the gallery, simply change the Image to

    ThisItem.'{Thumbnail}'.Large

    You can also use Small and Medium. This will also work on mobile devices (where SharePoint URLs will not). For more information, please read this post of mine a little while back.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Trachypithecus Profile Picture
    14 on at

    So when I try that, no images load into the gallery.  No errors or anything, just blank white space.  It doesn't seem like the SharePoint list generates thumbnails from the hyperlinked images. 

    However, when I try collecting the actual picture library from SharePoint into the app on startup and use that as the source for my gallery, it successfully populates with all of the pictures (and seemingly without the lag and loading issues, which is good).  Problem is that all of my data along with the hyperlinks that connect each record to the respective image are still located in my original SharePoint list and thus absent from the gallery, which creates a bit of a different hurdle.

    Is sourcing directly from the SharePoint picture library the only way to utilize the thumbnail functionality in a gallery?

  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    Hi @Trachypithecus ,

    That is where the Thumbnail attribute comes from - the actual file in the library. It also works on some different file types - Word and PDF in particular and the Large item where quite readable full screen on an iPad (or a photo resolution quite good).

    How do you mean "in my original SharePoint list" - you do only have hyperlinks in there? You also do not need to Collect - a filtered gallery based on the Library will also work.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • Trachypithecus Profile Picture
    14 on at

    I had all my data stored in a single SharePoint list, with each record containing a hyperlink to the corresponding image in the picture library that served as the source of the images in the gallery.  But if the images in the gallery are now coming from the picture library as thumbnails instead (which as I understand it the hyperlinks are not capable of doing), then I need to find a way to get each record in my list to correspond to the respective thumbnail now as they are no longer part of the same record.  All of the hyperlinks were added manually when entering each record and there's nothing else linking the two together.

    Since it seems that thumbnails only work in the context of the picture library, would it make sense to just bring all the data from the data list into the picture library as a bunch of columns and make each record based around the image file instead?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard