cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AaronTheYoung
Helper III
Helper III

How do I take images from a SharePoint list or Document libary and put them in a gallery?

I've been trying to figure this out, but I'm just not understanding.

 

I have a list of equipment in a SharePoint List and it is used in a fairly robust check-in/check-out app.  I want to include a distinct image of each piece of equipment in the gallery list of equipment.  I've been able to point the gallery template image at a single image, but that is making ALL the equipment in my list have the same image?

Do I put it in an attachment column?

Do I put it in the image column?  If I do, how do I put the data there and avoid using a link?

Do I put the images in a Image Library?  If I do, how do I assign them correctly the records in my SharePoint list?

 

Which is simplest?  Performs the best?  I don't want to wait for links to load or any other slow down.

3 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @AaronTheYoung ,

If you have a gallery based on the Library and put in an Image Control, you can view it with the Image property of 

ThisItem.'{Thumbnail}'.Large

you can also do Small and Medium

 

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.

View solution in original post

@AaronTheYoung ,

Firstly have a read of this post of mine as it also covers attachments - this all works in Browsers as well as phone apps.

You can use 

First(ThisItem.Attachments).Value

if you have one attachment and want to view it in the gallery or a form. Note however that this gallery has to be based on the List, not a collection as attachments do not come across in one.

There is also the option of storing the image in Base64 text in a multi-line text field in the list, but for you an attachment is probably the best option (I use it quite a lot).

 

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.

View solution in original post

Hi @AaronTheYoung ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.
For your further assistance, I have recently done a blog on this subject.

 

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.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @AaronTheYoung ,

If you have a gallery based on the Library and put in an Image Control, you can view it with the Image property of 

ThisItem.'{Thumbnail}'.Large

you can also do Small and Medium

 

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.

Cool. That's great info. I was able to get it to work by just using ThisItem.DeviceImage.  but, I don't like having to put a URL in column and that points to the image in a library.

 

Can't I just store the image data in the SharePoint list?

@AaronTheYoung ,

Firstly have a read of this post of mine as it also covers attachments - this all works in Browsers as well as phone apps.

You can use 

First(ThisItem.Attachments).Value

if you have one attachment and want to view it in the gallery or a form. Note however that this gallery has to be based on the List, not a collection as attachments do not come across in one.

There is also the option of storing the image in Base64 text in a multi-line text field in the list, but for you an attachment is probably the best option (I use it quite a lot).

 

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.

Hi @AaronTheYoung ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.
For your further assistance, I have recently done a blog on this subject.

 

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.

Your information helped me down the road.  Thanks very much.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,952)