SharePoint Image Gallery Web Part

In this SharePoint Online tutorial, we will discuss on SharePoint Image Gallery web part.

We will check the SharePoint Image Gallery web part and how to add the SharePoint Image gallery web part to our SharePoint modern site page, and also we will discuss the various layouts in the SharePoint Image gallery web part on SharePoint Online modern site.

The example we are doing here is based on a SharePoint Online environment, Some of the features described below may not be available in SharePoint Server 2019.

What is the SharePoint Image Gallery web part?

  • In the modern SharePoint site, Microsoft provides a lot of out-of-box web parts to work with modern site pages. One of the popular web parts is the SharePoint Image gallery web part.
  • The SharePoint Image gallery web part allows us to display a collection of images rather than a single image.
  • You can add a title for the collection at the top of the SharePoint image gallery web part.

Read SharePoint Text Web Part

How to add SharePoint Image Gallery web part

  • Open the SharePoint site page where you want to add SharePoint Image Gallery web parts to the SharePoint modern site page.
  • If you’re not in edit mode already, choose Edit Page at the top right of the SharePoint site page.
  • Click + circled icon then add a new Section layout.
  • In the search box, enter the Image gallery to quickly find and select the SharePoint  Image gallery web part.
Modern sharepoint image gallery web part
Modern SharePoint image gallery web part

In the below screenshot, you can see the SharePoint Image gallery web part is added, Here you click on the Add Images to add images from various sources (highlighted in red) to give a title for the SharePoint Image gallery web part. Then click on the + Add links option to add more images to the SharePoint Image gallery web part. 

sharepoint online image gallery web part
SharePoint online image gallery web part

You can add the links from different sources mentioned below :

  1. Recent -> We can see the recently opened modern SharePoint documents, SharePoint pages, and images listed which we can select and add to our SharePoint Image gallery web part.
  2. Stock images -> We can also insert the Stock images to your SharePoint site page.
  3. Web search-> You can find images from Bing search or web search and insert them into the SharePoint site pages.
  4. One Drive -> Provide a link for an image or document that you have stored on OneDrive.
  5. Site -> Provide a document link, image link, or page from a SharePoint Site.
  6. Upload ->Upload an image or document, or page to a SharePoint Site.
  7. From a link -> Provide the link for your SharePoint document or an image etc., from OneDrive storage.
See also  How to allow anonymous read access to a SharePoint site?

In this example, I am going to choose an image from the Web search option and then select the Insert button.

sharepoint online image in image gallery web part
SharePoint online image in image gallery web part

Once you select one item, the Image will be added to the SharePoint Image gallery web part looks as shown below. You can also see I have changed the title to “Tech Conferences” and added 3 Images into the SharePoint modern team site Image web part.

sharepoint online image in the image gallery web part
SharePoint online image in the image gallery web part

This is how to add images in the Modern SharePoint Image gallery web part.

Read How to Customize SharePoint Modern list form using JSON

Edit SharePoint Image Gallery web part

Let us discuss how to edit the modern SharePoint image gallery web part.

  • By Editing the SharePoint Image gallery web part we can see two options on the right side of the property pane. They are Image options and Layout options.
edit sharepoint online image gallery web part
edit SharePoint online image gallery web part

Image options

  • Image options allow us to choose images and show images from the SharePoint library.
  • This second image option gives us a dynamic gallery so that we can easily switch or add many images from the SharePoint site library.
  • We can also include the Subfolders, where it takes images from the folders and displays them.
  • The maximum number of images that we can display from the Site Assets is 255.
image gallery web part in the modern SharePoint
image gallery web part in the modern SharePoint

Layout options

Next, we can discuss the layouts in the SharePoint image gallery web part,

There are three layouts available in the SharePoint image gallery web part. Such that,

  1. Brick Layout.
  2. Grid layout.
  3. Carousel Layout. 

Brick Layout

  • In brick layout, We can view the caption and title only when we view the image in full size.
  • We cannot re-order images in the Brick layout and it is not possible.
SharePoint online Brick layout in image gallery web part
SharePoint online Brick layout in image gallery web part

Read SharePoint modern list view customization example

See also  How to Send Email to SharePoint Group in Power Automate?

Grid layout

  • Grid layout, We can view the caption and title only when we view the image in full size.
  • It is possible to rearrange images in a Grid layout by dragging and dropping them inside the SharePoint Image gallery web part.
  • Using the Grid layout we can also choose the aspect ratio of 4:3 standard, 16:9 wide, and the default one is 1:1 square.
SharePoint online Grid layout in image gallery web part
SharePoint online Grid layout in image gallery web part

Carousel Layout

  • The carousel layout, the caption, and the title will appear below the image.
  • We cannot re-order images in the Carousel layout and it is not possible.
SharePoint online carousel layout in image gallery web part
SharePoint online carousel layout in image gallery web part

These are the different layouts available in the SharePoint image gallery web part in SharePoint Online.

Read How to remove SharePoint Online Modern Page Title using PowerShell

Edit Image in SharePoint Image Gallery web part

Let’s see how to edit an image to add a title and caption in the SharePoint Online Image gallery web part,

  • Drag and drop the image inside the SharePoint Image gallery web part in Edit mode.
  • When the image gets uploaded successfully, select the Edit icon to edit the web part properties, like Alternative Text, Title, and Caption.
  • Click Republish to commit your changes.
sharepoint online image gallery web part
SharePoint online image gallery web part
  • We can view the caption and title only when we view the image in full size.
image gallery web part in modern SharePoint
image gallery web part in modern SharePoint

This is how you can add a title and caption for an image in the modern SharePoint Image web part.

Read How to Add Modern SharePoint Site Page in Microsoft Teams

SharePoint image gallery carousel autoplay

  • No, Auto-Play functionality will no longer function for the SharePoint Image gallery web part in Modern SharePoint.
  • The modern SharePoint picture library is deprecated, so it will not use the slideshow library to switch new images automatically.
  • Users can manually select the next and the previous buttons to view the images. And users can navigate through a set of images one at a time.
See also  How to count rows in a SharePoint list using Power Automate?

SharePoint displays images document library

Let us see how we can display images from the document library,

  • On the SharePoint site page, select Document Library and upload the images that you want to display.
SharePoint display images document library
SharePoint displays images document library
  • Once uploaded in the SharePoint Document library, Edit the SharePoint Image gallery web part.
  • By Editing the SharePoint Image gallery web part we can see two options on the right side of the property pane. They are Image options and Layout options.
  • In the Image option Click on the Dynamically display from a document library option.
  • In the Documents library dropdown, select the Documents option.
  • If you want to display the subfolder images then you can select the Include subfolders checkbox.
  • The maximum number of images that we can display from the document library is 30.
  • As I previously explained, you can select the layout as per your need. Click Republish to commit your changes.
SharePoint modern display images document library
SharePoint modern display images document library
Modern SharePoint display images document library
Modern SharePoint displays images document library

This is how we can display images from the document library,

Related SharePoint Online tutorials:

In this SharePoint tutorial, we learned the SharePoint Image gallery web part, and how to add a SharePoint Image gallery web part for the SharePoint Online modern site page. And also covered below topics:

  • Edit SharePoint Image Gallery web part in Modern SharePoint
  • How to Edit Image in SharePoint Image Gallery web part in modern SharePoint
  • Various layouts in SharePoint Image Gallery web part in SharePoint online
  • SharePoint image gallery carousel autoplay
  • SharePoint displays images document library
>