Skip to content

Transform SharePoint Image Libraries into Galleries

Learn how to prep Style Library assets, tune the image library view, and configure web parts so SharePoint delivers an intuitive, lightweight gallery experience.

A customer recently asked for a more user-friendly way to browse images in SharePoint. The classic list view felt clunky, so I tested a lightweight gallery approach that needs only a few files and works reliably (verified with SharePoint 2013).

A clean gallery keeps people from scrolling through endless rows and instead lets them click through visual previews. All items continue to live in the SharePoint image library, so you still benefit from permissions, versioning, and search.

Step-by-step guide

Prepare the files

  1. Create a folder inside the Style Library, for example Siteurl/StyleLibrary/ImageGallery, and store all assets there.

  2. Download the Galleria library. You will need the following files:

    jquery-1.11.0.min.js
    galleria-1.3.5.min.js
    classic.min.js
    classic.css
    classic-map.png
    classic-loader.gif
  3. Upload every file to the new folder and add a DisplayGallery.txt file that will later hold the script.

Build the library and view

  1. Create the image library that should surface the gallery.
  2. Add a new view based on All Pictures, but show only the Name column.

View configuration for the SharePoint gallery experience

Configure the page and web parts

  1. Create a page, add the image library web part, and set the freshly built view as the default.

Standard view in the SharePoint image library web part

  1. Insert a Content Editor Web Part and link it to the DisplayGallery.txt file.

Content Editor Web Part referencing DisplayGallery.txt

  1. If you stored the folder under a different path, update each of the four path references inside DisplayGallery.txt so the scripts and CSS load correctly.

Resulting SharePoint gallery powered by Galleria

Follow-up tip

Want to enrich the gallery with metadata? Learn how to import EXIF information automatically in Import EXIF Data into SharePoint Image Libraries.

Happy coding!
Best, Stefan

Related articles

Smarter Event Booking 1.5.0: Outlook invitations, day
Smarter Event Booking 1.5: the day schedule in the edit form and an Outlook meeting request, captioned “Outlook invitations · Day schedule · Archive per event”

Smarter Event Booking 1.5.0: Outlook invitations, day schedule, archive

The new version: the confirmation as a real Outlook invitation, time slots edited in a table and a day schedule, and one message to all attendees of an event.

Read more
A digital visitor log instead of the paper sign-in
Digital visitor log of a location with key figures for planned, on-site and checked-out visitors

A digital visitor log instead of the paper sign-in sheet: registering visitors with Microsoft 365

Why the paper sign-in sheet at reception falls short and how a digital visitor log with Outlook, QR code and a terminal works in your own Azure subscription.

Read more
Smarter Advent Calendar becomes Smarter Engagement
Smarter Engagement Calendar in the Launch design with doors for a software launch

Smarter Advent Calendar becomes Smarter Engagement Calendar

Version 1.4: occasions all year, content in four languages, ready-made content packs, new designs, a flexible schedule, new campaigns on the same page and simpler licensing.

Read more

Questions about this topic?

We are happy to help you put this into practice in your environment.