Product Gallery (video tutorial)
Last updated: Nov-18-2026
Overview
The Product Gallery adds images, videos, 3D models, and 360 spins to any product page, in one gallery. This short video shows the code an AI agent generates when you ask it to add a Product Gallery, for both a plain HTML page and a React or Next.js app, and how to match the gallery to your brand.
Video tutorial
This video is brought to you by Cloudinary's video player - embed your own!
Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.
Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
What the Product Gallery displays
| The Product Gallery adds images, videos, and 360 spins to any product page, in one gallery. See Displaying assets. |
Use an AI agent to add the gallery
| Ask your AI agent to add a Product Gallery to your page. The rest of the video shows the code to expect, for both a plain HTML page and a React or Next.js app. |
Embed the gallery in plain HTML
For a plain HTML page, the agent adds the Product Gallery script tag, then calls galleryWidget with your cloud name and the tags that identify your assets. See Install and configure the Product Gallery widget. |
Allow client-side resource lists
| The gallery gets tagged assets from a client-side resource list, which Cloudinary restricts by default. Clear the Resource list checkbox in Settings > Security > Restricted image types, so the gallery can show your tagged assets. See Make sure client side asset lists are enabled. |
Install the npm package for React or Next.js
In a React or Next.js app, the agent installs the @cloudinary/product-gallery npm package and calls resolveConfig on the server. |
Render the gallery on the server
The code passes the resolved config to the Gallery component, so the gallery is server-side rendered in your page's HTML. See Server-side rendering with React and Next.js. |
Match your brand
| Use configuration parameters for styling where they exist, such as border colors, corner radii, navigation buttons, and thumbnails, and CSS for anything else, such as a shadow on the main viewer. See Customizing styles. |
Find the sample projects and docs
| Find the JavaScript and Next.js sample projects on GitHub, and every option in the Product Gallery reference. |
Keep learning
- Dive into the Product Gallery demonstration page for more examples, such as events and analytics tracking.
- Read our Product Gallery guide and reference, covering every available parameter option.
- Explore the code from the video in the JavaScript and Next.js sample projects on GitHub.
- See how the Product Gallery can improve e-commerce workflows.
If you like this, you might also like...
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
