Questions tagged [gallery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
284 views

Product Gallery doesn't allow grabbing to scroll images on Mobile after upgrade

Following the implementation of the latest upgrade onto our site, we've observed that in mobile viewpoints, the product image gallery doesn't allow for the user to scroll between images/videoes via ...
Thomas's user avatar
  • 31
0 votes
0 answers
92 views

Gallery widget / fotorama / breakpoints thumbsize

Question is for Magento ver. 2.4.3 with custom Theme. I try to do two things with the fotorama gallery: Set the nav to thumbs and navdir to horizontal ("max-width":"1024px") The ...
guest123's user avatar
1 vote
0 answers
17 views

getting fatal error if product images not uploaded

if there is no product image then getting this error on Magento 2.2 [Fri Oct 28 08:48:21.033726 2022] [fcgid:warn] [pid 2669752] [client 47.15.21.175:0] mod_fcgid: stderr: Stack trace: [Fri Oct 28 08:...
Shiv Singh's user avatar
0 votes
1 answer
234 views

magento2.4 how to upload Pdf file to gallery and insert them to cms page

I have to upload PDF files from admin gallery and insert them to CMS-page, I can see extensions available for product attributes PDF upload but I need to use them an CMS-page through gallery. Kindly ...
vijayalakshmi's user avatar
1 vote
3 answers
701 views

How to add <picture> around the fotorama__img on the productpage - Magento 2.4

We would like to add a <picture> </picture> element around the main image with class fotorama__img on the productpage. How can we achieve that?
JGeer's user avatar
  • 1,420
1 vote
1 answer
86 views

Magento 2.4.2-p2 change "Select From Gallery" root folder

Good afternoon all, I am working on a site that has large amount of images (110k +) in the media folders. The media select screen opens and sits loading from storage root but I would like to set the ...
Baber's user avatar
  • 178
0 votes
1 answer
376 views

Magento 2.4.4 thumbnails doesn't show

i installed magento 2.4.4 but i can't see thumbnails on my website. I followed a lot of suggestions on internet like disable old media gallery or type php bin/magento media-gallery:sync php bin/...
Daniel Doman's user avatar
0 votes
1 answer
281 views

Magento 2: How to display product image caption instead of product title below the image in product details page?

We want to replace product title/heading under product image with its caption(value in title attribute of IMG element). The things that do need the captions are: When clicking on another image in the ...
CodeForGood's user avatar
1 vote
2 answers
847 views

Magento 2 Gallery.js fotorama js

there is a function returnCurrentImages in gallery.js file returnCurrentImages: function () { var images = []; _.each(this.fotorama.data, function (...
Niraj Patel's user avatar
0 votes
1 answer
570 views

Set programmatically image roles

I have that in my backoffice : and I need that: This solution does not work for me : if($key == 1){ $prod->addImageToMediaGallery($imgPath, array('image', 'small_image','thumbnail'), ...
idIA Tech's user avatar
0 votes
1 answer
431 views

Media Gallery - Cannot upload images

i've created a brand new Magento 2.4.3-p1 installation and using the media gallery i'm getting some errors. The main error is when i'm trying to upload images i always get the error below One other ...
Armindo Pereira's user avatar
0 votes
1 answer
253 views

Premium image gallery that support WebP

Which Premium Image gallery supports WebP format for Magento 2. Or how to find does my gallery supports WebP format. And when I say support I mean no conversion. I just want to know will the extension,...
Stefy's user avatar
  • 1
0 votes
1 answer
946 views

Fotorama - how to show both, dots navigation and thumbs navigation

Is it possible to show both, dots navigation and thumbs navigation in product page? Like in picture. Thank You.
John's user avatar
  • 1
1 vote
3 answers
2k views

2.4.3 Page Builder 404 on Images from Media Gallery

I've just updated to 2.4.3 (which now includes Page Builder). When using Page Builder to add images from the Media Gallery, the selected image does not display properly because the image src is ...
Hunter's user avatar
  • 789
0 votes
1 answer
988 views

Magento 2 open fullscreen/lightbox view when clicking on product thumbnails

I'm attempting to make it so that if I click on one of the thumbnails in the carousel it opens the fullscreen mode rather than the customer having to click twice to first get the image onto the stage/...
joeybab3's user avatar
  • 378
1 vote
1 answer
457 views

Overriding GetDirectoryTree.php - preference not working

Having issues overriding Magento\MediaGalleryUi\Model\Directories\GetDirectoryTree.php. It is related to a current Media Gallery bug that causes Folders not to display (https://github.com/magento/...
Kalvin Klien's user avatar
-1 votes
1 answer
457 views

Youtube videos are not working on Simple Product pages

Any simple product that has a video assigned to it, will not play the video. If you are looking at the config product then videos play without issue. Magento Version 2.3.5
ashikra's user avatar
  • 99
0 votes
1 answer
67 views

how can I update all product base images, to be the same as small images in Magento 2

I have a set of products, which are using different image for base, small and thumbnail. I would like to programmatically update them so that the base/thumbnail image is the same as the image now used ...
gabtzi's user avatar
  • 626
0 votes
1 answer
1k views

Magento 2 - How to change fotorama nav shaft thumbnail image size - for grouped products?

I need to change the size of the small images below the gallery, but only for products of type grouped Normaly you can change the size in the file THEME/etc/view.xml: <?xml version="1.0"?...
Black's user avatar
  • 3,100
2 votes
1 answer
2k views

Magento 2: Videos not working in Product gallery

Video at product gallery inside product detail page is not working, However, it is working from admin panel but on product view it is showing only video thumbnail. Video is not playing while clicking ...
Nikul's user avatar
  • 1,306
1 vote
1 answer
997 views

Fotorama zoom_in and zoom_out buttons are not working in Magento 2.3.6

The zoom_in and zoom_out buttons are not working in the product pop-up gallery, however, while clicking the image, the image gets zoomed on the first double click and gets zoomed out on the second ...
Reshad Zazai's user avatar
0 votes
1 answer
304 views

Magento 2 - Fotorama Gallery Nav shaft is missing on product page

If you add multiple images to a product then they are showing below the base image in small boxes, see screenshot below (bottom corner - left): This box is missing. First I thought it is because some ...
Black's user avatar
  • 3,100
1 vote
1 answer
268 views

Issue With Displaying Gallery Widget

I am trying to add images product gallery to my custom widget using Fotorama. What it should look like: So I tried to initialize the gallery widget using the js script. Based on the info I got from ...
Magento_learner's user avatar
0 votes
1 answer
126 views

Magento 2 Image Gallery pure SQL Manipulation

I've written an interface for Magento 2 admin that allows creation and editing of key product attributes from a phone. Once a product is created and it's images attached to the product, I have been ...
Duncan Wardlaw's user avatar
2 votes
1 answer
1k views

Base images as first image, change positions in bulk - Magento 2.3.5

We have a large catalog (125K products), with a lot of products where the base image is positioned somewhere in the middle of the gallery. The selection of base image itself is fine, this should be ...
JGeer's user avatar
  • 1,420
0 votes
1 answer
139 views

How to make product gallery thumbs over the image in Magento 2? Like in this example

I am able to do it vertically but how can I get it over the image? Magento 2.3.4 Thanks.
Aleksey's user avatar
  • 37
0 votes
1 answer
399 views

Enabling zoom when on gallery fullscreen

How can I get the zoom effect on a gallery product page to show when I am in full screen mode? I am using Magento 2.3.4 enterprise. This is what I have in myTheme/etc/view.xml file. <vars module="...
Jason Kollias's user avatar
0 votes
1 answer
368 views

How to provide and save data for custom field in gallery.phtm on product edit page

I have create custom field in admin product edit page image gallery popup in custom module with observer event. Now i want to provide data to this field from table ...
Valentyn Kormilets's user avatar
1 vote
1 answer
591 views

Remove main product image from gallery (and placeholder)

Steps: I have a configurable product with main image for thumbnail and everything else. I create a variation with it's own image. I select hidden in product page in the main product's image. ...
MatAle Albiach's user avatar
0 votes
1 answer
118 views

Magento_Catalog Custom Gallery customization event

What event do I have to listen for in Javascript to detect that the user has changed the customization in a customizable product? I am working on a custom gallery for my product page, but i am ...
Manak Kapoor's user avatar
3 votes
0 answers
321 views

Change Additional product Images based on the selection of color (custom option) Magento 2

I want to change the additional images based on the selected color on the product page. There are many custom options on the product page. My requirement is that, change the additional gallery images ...
Sunny Rahevar's user avatar
0 votes
1 answer
249 views

Magento 2: I have a problem with configuring gallery magnifier in product details page

I'm looking for an effect like the one this site or at least close to it: https://fashionmix.bg/mazhki-cherni-visoki-ketsove-shagren-it251019-16 But when I configure magnifier in view.xml and set ...
Dimitar Troyanov's user avatar
1 vote
0 answers
816 views

Product Page Gallery "TypeError: settings.$elementF.fotorama is not a function"

Please can anyone assist, it is driving me crazy. There are quite a few answers on here regarding this, however none have them have worked. Here is my requirejs-config.js file: var config = { ...
Steven Hardy's user avatar
2 votes
2 answers
501 views

How do I overwrite the Gallery.php

How do I overwrite the core Gallery.php? from vendor/magento/module-catalog/block/View/Gallery.php to **app/design/ ...?** Please help, Thanks
Paul Fan's user avatar
  • 614
2 votes
1 answer
206 views

How do I pass the product ID and attribute to Gallery.php block?

How do I get product ID and product attribute at magento/module-catalog/block/product/view/gallery.php? Please help, I need to do some image filtering by product custom attribute with the image ...
Paul Fan's user avatar
  • 614
1 vote
2 answers
1k views

How to override or extend etc/view.xml file in custom module in Magento2?

I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module. I have tried to override in app/code/<vendor>/<module>/etc/view....
Dipesh Rangani's user avatar
2 votes
2 answers
2k views

Magento 2 how to listen to event fotorama fullscreenenter

I am not able to listen to event fotorama:fullscreenenter what I've tried: <script type="text/javascript"> require(['jquery', 'mage/gallery/gallery'], function($, gallery){ $('[...
Juliano Vargas's user avatar
0 votes
0 answers
321 views

magento 2.2.8 Configurable product: Changing color showing second gallery image as selected

I am using Magento 2.2.8 and facing a weird issue on Product Detail Page. On the Product Details Page, my gallery shows the wrong image as selected, instead of the first one. Steps: Land on ...
Tech2Pak Tech2Pak's user avatar
6 votes
5 answers
7k views

Bulk remove all product images from a Magento 2 shop

We would like to remove all product images from the database and the file-system in Magento 2.2.8 shop. There is a solution for Magento 1 Magento Delete all Product Images Can this easily be ...
Alex's user avatar
  • 13.7k
0 votes
1 answer
52 views

Gallery thumbnails are not generated

We need to import a lot of products from different vendors (about 30000 products). For some products the thumbnails are not generated in the front end. I tried clearing the cache, clearing static ...
Andras's user avatar
  • 169
0 votes
1 answer
133 views

Magento 2 - mouseup/mousedown event not fire on fotorama

In Magento 2, mouseup / mousedown event not fire on fotorama gallery. Does have any idea about this?
Dhaduk Mitesh's user avatar
0 votes
1 answer
878 views

Gallery images returns 0 images for product page Magento 2

For one product I am getting gallery images 0. in gallery.phtml <?php $galleryImages = $block->getGalleryImages(); ?> gives me count 0. I checked it database table ...
summu's user avatar
  • 837
0 votes
0 answers
164 views

The gallery images repeated in PDP page

In My PDP page, the thumbnail images which is shown on the bottom side of the product image are displayed twice Please refer below screenshot, It repeats the product image twice in bottom
Jaisa's user avatar
  • 2,522
1 vote
1 answer
499 views

Media gallery for product collection

I'm trying to add an alternative image for all config product images. To do so I extended Magento\Catalog\Block\Product\Image. For some reason $product->getMediagalleryImages() always returns the ...
Michael Thessel's user avatar
1 vote
0 answers
143 views

Gallery Thumbnail (left/right) Scroll Performance Android Chrome Sluggish and Unresponsive

Preconditions (*) Magento 2.2.7 and Magento 2.3 Product Gallery Product page gallery with sample data is installed on the luma theme with additional images (minimum 5+). Steps to reproduce (*) ...
Mark's user avatar
  • 11
0 votes
1 answer
1k views

Magnifier is not showing

Magnifier is not showing. Option enable set to true. Settings in my theme: Vendor/MyTheme/etc/view.xml <var name="magnifier"> <var name="fullscreenzoom">10</var> <!-- Zoom ...
BartZalas's user avatar
  • 1,747
2 votes
0 answers
495 views

Fotorama Responsive Breakpoint

I am having issues with getting fotorama responsive, the breakpoint for a resize is not being actioned. Below is my process of getting this to work: I changed my themes breakpoint for screen_m via ...
SamK's user avatar
  • 21
0 votes
2 answers
1k views

Change Product Page Fotorama On Element Click

I'm trying to change to a specific image in the product gallery when the user clicks a button to customize their item. So far I have the following code: require( ['jquery', 'jquery/ui', 'mage/...
C Prince's user avatar
0 votes
1 answer
883 views

Magento 2 product image gallery not responsive/resizing

I've made a custom Magento 2 Theme, updated the view.xml with all my image dimensions, and resized the catalog images through the cli. However, the Fotorama image gallery on product pages is not ...
Digitaq's user avatar
  • 151
1 vote
1 answer
143 views

Magento 2 - How to add video icon in dot if the gallery has video?

I want to add video-icon class in dot if the gallery has video.
Chetan Sanghani's user avatar