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 / caching or preloading ...
Power Apps
Unanswered

caching or preloading images in a gallery

(0) ShareShare
ReportReport
Posted on by 297

I have a gallery of news articles that pulls from sharepoint through the graph API. 
I have managed to get the images to load using a slightly convoluted method, as powerapps can't display an image that is stored in a sharepoint library.

 

Concatenate("https://prod-xxx.xxx.logic.azure.com:443/workflows/61xxxd2d2f64xxx374c837562b9b4/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=fpwhAuGUcTQxxxiWFN1OdA165CvjZxnk7xxxJ3xn0&itemurl=",EncodeUrl(ThisItem.imageWebUrl))

 

 

the full URL looks like this 

 

https://prod-xxx.xxx.logic.azure.com:443/workflows/61xxxd2d2f64xxx374c837562b9b4/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=fpwhAuGUcTQxxxiWFN1OdA165CvjZxnk7xxxJ3xn0&itemurl=%2Ffunctions%2FGives%2FSiteAssets%2FSitePages%2FOur-Two-Year-Journey%2F11611-xxxx-ae3e-4cbb-b582-f192d0bfa12b.jpg

 

 

the images can be accessed using the URL without authentication, so they are displayed;

nick9one1_0-1703334129236.png

 

The problem I have is the images are quite large, and they take some time to render when the screen loads.
 Sharepoint can render a 'thumbnail' of a larger image, but the URL doesn't work with the method I have used above. 

Is there another way I can render the images for the gallery on the previous page, or on applaunch so that they are immediately available? 

 

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Two things to help here:

    1. Shrink your image sizes down so it takes less time to move over the network. Aim for less than 50kB, which should be no problem for a thumbnail-sized one
    2. Consider loading this gallery's items into a collection (that you can periodically refresh in your app if you like). Once in a collection, the app can load it into the gallery much faster

     

    Hope that helps,

    Bryan

  • nick9one1 Profile Picture
    297 on at

    Unfortunately that doesn't help. I dont have control of the images. 
    My question is how do I pre-load the images so they are already available and dont need to be collected when the page loads. 

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