Questions tagged [gallery-image]

The tag has no usage guidance.

48 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
1k views

All product images need to be defined in view.xml?

In Magento 2, the image sizes are defined in theme's view.xml file, e.g. in Luma theme: /app/design/frontend/Magento/luma/etc/view.xml: <image id="category_page_grid" type="small_image"> &...
zitix's user avatar
  • 2,192
5 votes
3 answers
3k views

TypeError: settings.$elementF.fotorama is not a function

I am facing issue of TypeError: settings.$elementF.fotorama is not a function sometime on product details page. This question is duplicate of : Adding to cart breaks fotorama on page reload , Magento ...
Mukesh Prajapati's user avatar
3 votes
0 answers
1k views

Magento2 - fastest way to save product after several calls to addImageToMediaGallery() method

We had several issues when trying to build a catalog for a customer using native Import/Export functionality. Unfortunately it seems Magento2 has some difficult to download & process cloudfront....
Raul Sanchez's user avatar
  • 3,096
2 votes
0 answers
299 views

Magento 2 How to override image.xml file in our custom extension

We want to override the below XML file in my custom extension. vendor/magento/module-page-builder/view/adminhtml/pagebuilder/content_type/image.xml We want to override this XML file because we want to ...
DhwaniBhatt's user avatar
2 votes
0 answers
31 views

What renders the gallery images? Gallery returns thumbnail versions

I'm currently making a M2 site and I'm fairly new to the platform. I'm trying to make it so that people can customize their product. I found this extension: https://github.com/develodesign/magento2-...
Frank Chau's user avatar
2 votes
0 answers
58 views

Magento 2.2.2 product images are not loading on product page

I am using Magento 2.2.2 in which product images loading on all other pages except product page. After solved bootstrap error
Deepak Shinde's user avatar
2 votes
2 answers
2k views

How to change max-width in the product gallery in Magento 2

How to change max-width in the product gallery in Magento 2 by using below code. <div class="fotorama__stage__shaft fotorama__grab" tabindex="0" data-gallery-role="stage-shaft" style="width: 684px;...
user48677's user avatar
1 vote
0 answers
35 views

Duplicate Images When Adding Image Form Gallery In Magento 2.4.5

I am using Image Uploader component to upload multiple images. But when I click 'Select from Gallery' -> select image -> 'Add Selected', it gets duplicate images. How do I get the correct image ...
Finn Truong's user avatar
1 vote
1 answer
2k views

Magento2 - What is the best way to remove and add an image in magento using rest API?

For an SKU, I have multiple images. Every time I change something related to the SKU, I do a PUT. But before that I also DELETE the images using in a loop https://<magentoInstance>/rest/all/V1/...
Scorpy47's user avatar
1 vote
1 answer
494 views

I want to get images form product gallery of a product and display them one by one in Product detail page

This is the gallery.phtml code which is displaying main thumbnail image only <?php $images = $block->getGalleryImages()->getItems(); $mainImage = current(array_filter($images, function (...
Anonymous Record's user avatar
1 vote
0 answers
378 views

How to disable fotoroma fullscreen image gallery?

I want to disable fotoroma fullscreen image and I did that by disabling the fullscreen in view.xml in the theme but it doesn't make any effect. Any help is appreciated.
Subrat Panda's user avatar
1 vote
1 answer
1k views

magento 2 Remove product specific image programmatically not all the gallery images?

I am updating the product from the frontend and I want to only remove specific images which client is deleted not all the images. Is there any method available ? help will be appreciated.
Manish Goswami's user avatar
1 vote
0 answers
124 views

Make the same multiple tab work separately in form Magento 2

$fieldset->addField('media_gallery', 'note', [ 'label' => '', 'title' => __('Media Gallery'), 'name' => 'media_gallery', // '...
MichaelHa's user avatar
  • 661
1 vote
1 answer
1k views

How can i remove product gallery " fotorama__stage" class height?

I am facing issue of image height on product details page gallery. If i remove fotorama__stage class height from inspect element then its work fine. Please check below image. How can i remove ...
Mukesh Prajapati's user avatar
1 vote
0 answers
334 views

How to make left/right arrow appear only when hovering Magento 2 base image in gallery

I want to remove left and right arrow when first accessing the product page. By default it was set to appear even when not hovering base image in image gallery. Since it has that overlay effect around ...
Mihailo Nedeljkovic's user avatar
1 vote
1 answer
116 views

How to restrict allowed catalog image extensions?

I created a module that overrides ImageUploader like so: <preference for="Magento\Catalog\Model\ImageUploader" type="MyCompany\MyModule\Model\Catalog\ImageUploader" /> The code looks ...
Tony DeStefano's user avatar
1 vote
0 answers
316 views

Magento 2.2.6, Configurable Products: Blank Image-Area after deselecting "visual swatch" on product-page

Preconditions 1. Update from Magento 2.2.4 to 2.2.6 Steps to reproduce 1. Add Product in the Backend 2. Create Configurations 4. Use Attributes with the input type "Visual Swatch" 3. Save Product 4....
feelcomfort's user avatar
1 vote
0 answers
33 views

Magento 2, How copy and resize image of category atfer upload

Using Magento 2, Admin, Catalog-Category. I would like make an image which copy and resize after upload category image. Example: I upload image name : rest04.jpg magento will genterate : /pub/media/...
Bong Channarith's user avatar
1 vote
0 answers
26 views

VERY small Png image not showing in frontend?

I have looked for an answer with no sucess. In my 1.7.0.2 Magento I can upload a QR code png image, dimensions 164 x 164, size 400 bytes, it shows fine in the admin area, but will not display in ...
PeeDee's user avatar
  • 13
1 vote
0 answers
284 views

How to disable the draggable image feature from product add/edit in admin area magento 2

I am trying to disable the draggable feature so I can keep the position as it is. Also trying to implement the position input into img-dialog-tmpl but it not saving the values. disabled the draggable ...
Suman Singh's user avatar
  • 1,007
0 votes
0 answers
33 views

Image duplicated in media gallery

Magento 2.4.6-p3 I am almost sure that this is a setting, but at the moment, I am trying to figure out how to solve this. I have got a product that has one image: On the product page, that exact ...
user4095519's user avatar
0 votes
0 answers
23 views

Where the product admin images processed in magento 2?

In Magento 2, if you go to Products->Catalog->Edit->Images and Videos you can add images to the product. The uploader will upload a temp image immediately.When click on save image will save ...
Mujahidh's user avatar
  • 2,793
0 votes
0 answers
14 views

Media gallery thumbnails stretched when image is horizontal ratio in magento 2.4.5-p2

I have a problem when the images are not square. I have already disabled all extensions and enabled the Luma theme. That doesn't fix the problem. When I upload a non-square image, the preview looks ...
Straddi's user avatar
0 votes
1 answer
180 views

How to show "thumbnail" instead of "swatch image"?

Anyone knows how to show thumbnail image instead of swatch? I already have setup swatch role for the whole catalog and I'm looking for a solution without modifing image role.
Silver's user avatar
  • 119
0 votes
0 answers
184 views

Change Bundle Product images based on option selection - Magento 2

I'm looking for some custom solution for Bundle Products. Where Product Gallery Images will populate according to the selection of the Bundle product Options Our requirement: On Products Detail page (...
Sheri's user avatar
  • 140
0 votes
2 answers
641 views

Limit Thumbnail Images on Product View Page

I am using Magento 2.4.1, I have added more than 3 images in the product but in the thumbnail, it only shows 3 thumbnails. However, on clicking the Previous and Next buttons I am able to see all ...
ishaq's user avatar
  • 195
0 votes
0 answers
111 views

Assigning Thumbnails via Magento REST API

I am trying to add thumbnail images to SKUs via REST API. However, the image is added but does not show as a thumbnail. Please see my POST request below https://url.co.uk/rest/V1/products/231877/media ...
Catherine Brugge's user avatar
0 votes
1 answer
811 views

How I can add Gallery Images for custom form in Magento 2

I am creating a Custom form in admin of magento 2,and I want to add media gallery for same product form(Images and video Tab https://prnt.sc/w926fk ) into this form https://prnt.sc/w928bi please help ...
Neul Hoàng Trần's user avatar
0 votes
0 answers
30 views

product details page still have product gallery issue image are not showing sometime in magento 2.4

Now i added image back-end but still have product gallery issue image are not showing sometime in product details page magento 2.4
Ravindrasinh Zala's user avatar
0 votes
1 answer
404 views

Magento 2 - How to resize image using image's url?

How is the right way of resizing images in Magento 2. $image->getData('url'); I have the url of the image, how to resize it using the url? Is there an API / helper that does that?
Magento_learner's user avatar
0 votes
0 answers
135 views

Change first product image that is displayed on product page - Magento 2.3.5

How can we change the product image that is displayed first when the productpage is loaded? At the moment this is the first image in line, but we want to change this to be the "base" image. ...
JGeer's user avatar
  • 1,418
0 votes
1 answer
489 views

Magento 2.3.5-p - Show product page > product image alt and title tag (replaced fotorama gallery)

I'm using the following code to replace the fotorama image gallery on the product page based on this article. app\design\frontend\Mypackage\mytheme\Magento_Catalog\templates\product\view\gallery....
user2240778's user avatar
0 votes
1 answer
169 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
0 votes
0 answers
721 views

mobile view image quality as blurry in product list and details page magento 2.2.4

Image quality blurry issue in mobile view product list/details page. magento ver is 2.2.4. I found the reason for this issue. Having 2 MB image file and product uploaded in admin side. Then i can see ...
bhas kar's user avatar
0 votes
1 answer
184 views

magento 2 product page gallery images not showing

I am facing issue with gallery images I have images in backend but not showing in front-end product page gallery slider I have checked there is no error in the console.
Pawankumar's user avatar
0 votes
0 answers
214 views

Magento 2 Fotoroma Gallery last Image display in first position when image are greater than 7

I am setting product gallery image and trying to upload more than 10 image as thumbnail image but when I am uploading thumbnail images more than seven last image comes at first place.While last image ...
akgola's user avatar
  • 2,927
0 votes
2 answers
41 views

product image getting bigger as the gallery image number increases magento 2 and vise versa after adding bootstrap css (cdn)

product image getting bigger as the gallery image number increases magento 2 and vise Versa after adding bootstrap css (cdn) How to make the product image load in big size no matter what number is the ...
user71446's user avatar
0 votes
1 answer
99 views

Magento 1.9 - Product image resolution issue

We are facing an issue while trying to upload product images. The PNG format images looks fine like original image color/ resolution but JPG format images not looks good like the original image. JPG ...
Shoaib Saleem's user avatar
0 votes
1 answer
963 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
  • 847
0 votes
0 answers
245 views

How to disable catalog image scrolling in details page magento 2.3

Actually in my case for details page base images scrolling is available with mouse.we can scroll it but by looking wise it wont show slider is available there. so i want to disable image ...
Hitesh Balpande's user avatar
0 votes
1 answer
329 views

Magento 2 Gallery Images HTML

I am trying to find where in the template files I can add microdata to my products gallery images, but struggling to find the template/file that actually outputs the HTML img tags. I am actually ...
robgt's user avatar
  • 439
0 votes
0 answers
25 views

After Migrating my site magento1 to magento2 On product detail page images display wrong

After migrating My site magento1 to magento2 on product detail page images display with watermark. How can i display original small images? Original image:(magento1) Magento2 images after migration:...
Rutvee Sojitra's user avatar
0 votes
1 answer
233 views

Magento 2 : get full file path of full size image currently assigned to product

I want to get the full file path of the full-size image currently assigned to a product so as to rename and upload it again, any help would be appreciated.
Vivek Kumar's user avatar
  • 5,385
0 votes
1 answer
66 views

Image attributes in Magento 2

I have created a custom image attribute and I can get this to appear as a Role option. The problem is roles can only be assigned to a single image and I need an attribute that I can assign to ...
VeloursRouge's user avatar
0 votes
5 answers
2k views

Images Import Successfully But Images Not shown - Import By Magmi?

How can I solve the error, images import successfully and images saved into catalog/product/desired folder, but images not shown front end backend. Images imported by using MAGMI.
zus's user avatar
  • 165
0 votes
0 answers
248 views

How to manage images for different storeviews?

Magento2 with 1 website and 2 storeviews SV English and SV German First thing : I upload 5 images in image uploading section of product-page with setting All Storeview mode. Let's call image A, B, C, ...
Memes's user avatar
  • 708
0 votes
2 answers
2k views

Get all gallery images

I'm trying to pull through the gallery images on the product page because customizing the gallery with code: <?php $_product = $block->getProduct(); ?> <?php $gallery = $_product->...
drafiko's user avatar
  • 45
0 votes
1 answer
282 views

Pinit Button is not working in IE11 in magento 2

I have added pinit save button using following guide Pinit Widget builder in product detail page in gallery widget. I have added pinit.js at the end of app/code/Vendor/Module/view/frontend/templates/...
Knight017's user avatar
  • 632