Questions tagged [gallery-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

How to display product image slider's arrow if image count is greater than 4?

I want to display arrow if image count is greater than 4. In view.xml <var name="navarrows">false</var> I changed from true to false. Now arrow is not displayed but I want arrow if ...
0
votes
1answer
50 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 ...
0
votes
1answer
786 views

How to save product gallery image with param image is url, in Magento-2?

In Magento 2, I have created an extension, syncs products with another store. I have the data image_url which is in the following format , ["images" => ["0" => "http://image_url.jng", "1" =>...
0
votes
4answers
1k 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
0answers
73 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, ...
0
votes
1answer
908 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
1answer
884 views

White bars on magento product images with keepFrame(false)

I'm having trouble getting the product images to behave on product view pages. This screen shot is from the product view page. You can see the white bars down the side. All these images seem to be ...
1
vote
1answer
531 views

how to exclude some image from product gallery on front end

I am getting all the product images programmatically to create a banner slider from all of them, right now it is showing all the images that are uploaded from the admin to the specific 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;...
2
votes
1answer
1k views

magento2: how to use product uploader in custom module

<?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd"> <...
5
votes
0answers
575 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"> &...
3
votes
2answers
5k views

Magento 2 get gallery images

I'm trying to pull through the gallery images on the product page as I'm re doing the gallery. The code I'm using is: <?php $_product = $block->getProduct(); ?> <?php $gallery = $_product-...
25
votes
3answers
42k 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 ...
7
votes
3answers
3k 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\...