cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Re: Display image from Sharepoint Library. Authentication Problem?

I ended up utilizing your method after spending literal days trying to find a way to automate this process via flow. The shortcomings of both these MS products really wastes valuable time that could be better spent on other projects. Thanks for all your help with this! 

Cheers!

Highlighted
Helper II
Helper II

Re: Display image from Sharepoint Library. Authentication Problem?

My images are in a doc library. When I go to "Update item" I can;t choose a doc library. Is there a way to select a doc library? If not, how else do I get images into sharepoint?

Highlighted
Regular Visitor

Re: Display image from Sharepoint Library. Authentication Problem?

Hi Mark2457, maybe you can try "update file" action.

Highlighted
Advocate II
Advocate II

Re: Display image from Sharepoint Library. Authentication Problem?

@JMAFO @Aragorn911 @Mark2457 @Newbie2019 @robinwong 

 

You can view highly compressed and equally high quailty renditions Images or Photos files stored in any Document Library by using the {Thumbnail} property for any given image/photo or file (eg.Word documents,, PowerPoint, HTML files etc) :

 

Assuming you have added a SharePoint Connector to your app associated with Document Library, have added a Gallery control your app associated to that Document Library, you can thereafte simply add an image control to the Gallery and set it's properties as follows:

 

ThisItem.'{Thumbnail}'.Small
ThisItem.'{Thumbnail}'.Medium
ThisItem.'{Thumbnail}'.Large

 

Should you, for example, on selecting a specific row in the gallery whereby a pop-up windows appears containing an larger rendition of that same image/photo in another Image control, all you need to do is set the Image property on that control specifying the following base syntax:

 

Gallery1.Selected.'{Thumbnail}'.Large

 

The URL of the 'returned for sat the '{Thumbnail}'.Large property will look something like as follows:

 

https://...-mediap.svc.ms/transform/thumbnail?provider=spo&inputFormat=jpg&cs=fFNQTw&correlationId=GUID&docid=https%3A%2F%contoso%2Esharepoint%2Ecom%2F%5Fapi%2Fv2%2E0%2Fdrives%2Fb%21LR...Gwl%2Dh...bm%2Fitems%2F01.....HCL%3Ftempauth%3DeyJ…aXw0%26version%3DPublished&width=800&height=800

Note the URL (for a large thumbnail) ends with: &width=800&height=800

 

It is supported, albeit this blog from Chaks (a Senior Program Manager at Microsoft) describes how you can do this with the Graph APIs, this has since been implemented nataively in the SharePoint Connector per my blog post early this year:

https://masteroffice365.com/sharepoint-powered-thumbnails/

 

If you alternatively wish to view an ultra-high quality and equally superbly optimized rendition for any given photo, that by all accounts you'll never even be able to tell the difference between the 0.5Mb - 1Mb maximum size of the rendition compared even a 50Mb file of the original image, you can simply use the substitute function to replace the &width=800&height=800 in the thumbnail URL exposed with whatever values you want. For example:

 

Substitute( Gallery1.Selected.Thumbnail, “&width=800&height=800”, “&width=4096&height=4096” )

The Graph APIs do support specified custom thumbnails size, and as such this really is no different to what you can in case do with the Graph APIs. This technique is simply far easier to implement, and can be entirely dynamically set at runtime as and where you may wish to leverage it. Much like I have done in the lastest blog and corrosponding demo video I've recently published. 

https://youtu.be/vSbwmHfqK3c

https://masteroffice365.com/powerapps

Highlighted
Frequent Visitor

Re: Display image from Sharepoint Library. Authentication Problem?

Hi

 

What method did you use for converting 600 images please?

 

Thanks

 

 

Highlighted
Advocate II
Advocate II

Re: Display image from Sharepoint Library. Authentication Problem?

Could you elaborate on what exactly mean by convert 600 images? Convert to them to what exactly and for what purpose?

 

Per my earlier response on this thread, add a new Data Source connection to whichever SharePoint Document Library contains your images. Then assuming you want to display any images in that Document Library in Galley control in which you've set the Items property for that Gallery to the Data Source connection to the Document Library.

 

Thereafter simply add an image control to the Gallery and set its properties as follows:

 

ThisItem.'{Thumbnail}'.Small
ThisItem.'{Thumbnail}'.Medium
ThisItem.'{Thumbnail}'.Large

Whether there are 50 or 2000 images in that document library they will all be displayed in that Gallery control, loading on demand as you scroll with the gallery...

Highlighted
Helper I
Helper I

Re: Display image from Sharepoint Library. Authentication Problem?

Sorry for jumping on to an old discussion.  I have created a document library in which the image URI is stored in a multi row text column.  The issue is when I have any more than a few items in the library the connection to Powerapps for that library slows to a crawl, making the app useless.

 

I'm guessing it's because of the amount of text stored in the URI column?  Has anyone else encountered this issue?

Highlighted
Helper IV
Helper IV

Re: Display image from Sharepoint Library. Authentication Problem?

You're correct. The lists have a limitation on the content size in multiline columns. The only workaround I have found is to use the thumbnail property in PowerApps.

Highlighted
Helper I
Helper I

Re: Display image from Sharepoint Library. Authentication Problem?

Unfortunately I need the URI so I can pass it to an HTML table which then gets converted into a PDF.  The thumbnail property will work for the HTML file, but disappears when it's converted to PDF.

 

Even when placing the thumbnail in HTML and into an email body isn't useful as it then disappears by the next day.  Assuming it's just a cached image or something that Sharepoint clears daily?

 

 

Highlighted
Helper I
Helper I

Re: Display image from Sharepoint Library. Authentication Problem?

I have tried all the solutions suggested including the information from the below blog

http://www.cleverworkarounds.com/2017/09/22/a-lesser-known-but-really-important-update-to-powerapps/

Nothing seems to work in my case.

I have a document library that is holding the photos.

I have a string column holding the url of the photo.

I have tried creating another column with the url as a Photo in Sharepoint 

nothing seems to work.

Can someone please give some clear guidance on how this is supposed to work or if in fact, it does?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,074)