Questions tagged [gallery-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
864 views

SQL export of products and associated image gallery files

I need to list all product entity_id, SKU and associated images from the value field of catalog_product_entity_media_gallery. I need the output to be CSV based, so all images of each product will be ...
29
votes
3answers
51k views

How can I change the default product images sizes on Magento 2?

In magento 1.x.x, we could change default thumbnail images in admin : System > Configuration > Catalog But in magento 2.0, how can I change theses value I can not seem to find any configs to allow ...
0
votes
0answers
20 views

Magento 2 - add data attributes on product page to main img

I need to add few data attributes to main image on product page (using Magento 2.3). I tried following code in block, which I added to product page. But it is not working. Alert outputs code, but data ...
0
votes
1answer
20 views

when hovering on images only show arrow Magento 2

I want to show only left/right arrow appear only when hovering the image.
0
votes
1answer
14 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....
1
vote
2answers
1k views

Magento 2 Product base image and thumbnail images are not showing!

Product images are not showing on product detailed page. Small images are showing on listing page but base images and thumbnail images are not showing on the product page. I have given 777 ...
2
votes
1answer
1k 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 ...
0
votes
3answers
5k views

Magento 2 : How to override fotorama.js in magento custom theme

I need to show gallery arrow always visible on product gallery page. I tried in gallery.phtml variable arrows="always", but its not working. I want to show both arrow always visible on product ...
2
votes
2answers
1k 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;...
0
votes
2answers
1k 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->...
0
votes
4answers
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.
0
votes
2answers
47 views

Image cache is not generated properly when importing new products - Magento 2.3.4

I have recently imported 200 products, the import went well and the images do show up on the back-end correctly, however there is no cached version available. If I look at the category page and image ...
0
votes
1answer
19 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 ...
0
votes
0answers
36 views

503 error on PUT call to REST API

I'm able to POST images up to the media gallery of products on my Magento 2 installation using the /products/{sku}/media/ endpoint. I'm of the understanding that I should be able to overwrite an ...
0
votes
0answers
41 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 ...
0
votes
1answer
44 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 (...
0
votes
0answers
28 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.
0
votes
1answer
31 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.
0
votes
0answers
32 views

Magento 2 : gallery popup modification in product detail page

I am using magento 2.3.2 and I want to modification in gallery popup Need to show product name and 80% width popup with overlay instead of full-screen currently is showing popup in full-screen but ...
0
votes
0answers
10 views

Magento 2.3 Remove image resize in product detail page

I need to remove the image resize in Product detail page. If I remove the value and set as below, <image id="product_page_image_medium" type="image"> <width></width> &...
0
votes
0answers
16 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 ...
2
votes
3answers
3k views

Magento 2 : How to make product image zoom on mouse over

I want to zoom product gallery image on mouse over in magento 2. How to do that. Thanks.
2
votes
0answers
17 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-...
0
votes
0answers
17 views

how to display image with custom attribute, base on the bundle product custom attribute?

I did create custom attribute for image at simple product, which is called imageA and imageB. I have a bundle product also create a custom attribute to determine it show imageA or imageB, since ...
0
votes
0answers
22 views

magento1.9 can't save and remove gallery image

I need to manage the product gallery but the save button and the remove radio button are not working, it did not insert data or delete data in SQL. I've disabled the cache. Any idea?
0
votes
0answers
12 views

Magento2: Customize product gallery carousel in magento2

I want to customize the product gallery on product view page. So, I need to display only 3 images on each gallery arrow click. How to do that. Thanks.
0
votes
0answers
23 views

Magento2: Gallery Customisation

I want to display three images instead of displaying a single product image in the gallery. Is there any possibility? Thanks.
0
votes
0answers
49 views

Magento 2 Product page Fotorama thumbnail configure it to display 3 items per slide instead of 4

Product page, I would like show 3 thumbnail items per slide how can I achieve this: at the moment as example: the image above show 4 and bit I would like to set to 3 then the arrow should appear on ...
1
vote
1answer
175 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.
0
votes
2answers
252 views

move left product gallery on product page

How to move the slider to the left of the main picture?
0
votes
2answers
23 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 ...
1
vote
0answers
22 views

Make the same multiple tab work separately in form Magento 2

$fieldset->addField('media_gallery', 'note', [ 'label' => '', 'title' => __('Media Gallery'), 'name' => 'media_gallery', // '...
0
votes
1answer
40 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 ...
3
votes
1answer
89 views

Magento 2 override /lib html file [duplicate]

I am trying to override an html file in the lib folder, but I cant get it to work. Here is what I have so far: Path to file I want to override: /lib/web/mage/gallery/gallery.html Path to file I want ...
0
votes
1answer
214 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 ...
2
votes
2answers
74 views

Product Gallery Image Upload Issue in Magento 2.1.4

While uploading an image to the product gallery in magento backend product edit, I am getting the below error. "We Dont Recognize or Support this File Extension type" For all extension types i am ...
2
votes
0answers
438 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....
1
vote
1answer
191 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 ...
7
votes
3answers
4k views

Magento 2 get product gallery images on product listpage without load model in loop

I can get gallery images on product-list page using below code: <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->create('Magento\...
1
vote
0answers
101 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 ...
0
votes
1answer
758 views

Load all gallery images in category on hover (Ajax)

I have a code to load all the gallery images of a product in category, it will work but the problem is that will load ALL gallery images for products in the category (list.phtml) so will increase ...
1
vote
1answer
40 views

Magento media duplicates images and swap when not needed

I have come across a strange issue. Whereby, on the products page magento creates duplicate images for each image from the "More views" gallery. I have located the relevant code to the file media....
1
vote
1answer
96 views

Programmatically add image to media gallery in Magento2

I am looking at this article on the Gallery API in Magento2. I am testing the code samples in my browser var api = $('[data-gallery-role="gallery"]').data('gallery'); However, this returns undefined....
0
votes
2answers
649 views

How to stop magento to generate all types of images in cache on page visit

I'm using Magento 2.2.5 and when we visit listing or product page Magento creates the various sizes of images in pub/media/catalog/product/cache/ directory which I don't need except some. I have ...
1
vote
1answer
455 views

Magento2 remove slider of gallery images on product detail page

I'm using Magento2.2.5 Version, On product detail page by default gallery images showing in the slider. Here is the screenshot for the same:- http://nimb.ws/YrIb2P But I want to show, gallery ...
0
votes
0answers
87 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 ...
2
votes
1answer
475 views

Magento 2 : How reduce size of fotoroma gallery icons on product detail page

I would like to reduce size of following icons appearing on detail page, enabled native fotoroma widget. 1. Fotoroma plus icon and minus icon 2. Fotoroma close icon <var name="magnifier"> ...
1
vote
1answer
53 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 ...
0
votes
1answer
124 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 ...
0
votes
1answer
243 views

magento 2: Product Page gallery.js issue

On product page the below console error showing i just set fullscreen=false gallery.phtml <script type="text/x-magento-init"> { "[data-gallery-role=gallery-placeholder]": { ...