Skip to main content
12 votes
Accepted

Magento 2 Rest Api get Thumbnail Image url

If you need the complete path of the thumbnail image with Magento 2 cache system through API, you can create your custom API based on the native ProductRepository class. Create a new module. (...
Franck Garnier's user avatar
7 votes

Magento 2 : How to get product get images for thumbnail?

You need to inject the ImageBuilder class in our block : protected $_imageBuilder; public function __construct( ........ \Magento\Catalog\Block\Product\ImageBuilder $_imageBuilder ..........
Rohan Hapani's user avatar
  • 17.5k
5 votes
Accepted

magento 2.2.2 - How to transfer the product thumbnail to the left side

If you want to set the slider on the right side: - 1) Find the file "app/design/frontend/[Your_Theme]/[Your_Theme]/etc/view.xml" and look for these lines: <vars module="...
Jaimin's user avatar
  • 2,146
5 votes
Accepted

Magento 2 : Admin grid with thumbnail field

Add below column code in your ui_component <column name="image" class="Vendor\Module\Ui\Component\Listing\Column\Thumbnail"> <argument name="data" xsi:type="array"> ...
Prashant Valanda's user avatar
5 votes
Accepted

How to add "click" or "change" event on product thumbnail images in frontend?

There are three ways to change the image Nav Frame image click, Nav prev/next arrow click and Slide the image. jQuery event dispatched on dispatch() method on 5192 line from {Magento2 root directory}/...
Rajkumar Vellaiswamy's user avatar
4 votes
Accepted

Magento 2 - Category Thumbail

There is no native helper that produces thumbnail for category images. You need to create one for the category entity. To do that first create helper class in Helper\Category\Image.php namespace ...
Zefiryn's user avatar
  • 5,908
4 votes

Check if product has uploaded image In Magento 2

Inject \Magento\Catalog\Api\ProductRepositoryInterfaceFactory in our constructor. protected $_productRepositoryFactory; public function __construct( \Magento\Catalog\Api\...
Kishan Patadia's user avatar
4 votes

Magento 2 Change Minicart Product Image from thumbnail to regular image

In this topic we will do How to Change Product Image in Minicart Step 1: Create di.xml file Step 2: Create Image.php file Product image in minicart will getten to show by function doGetItemData() ...
Baharuni Asif's user avatar
3 votes
Accepted

Magento2: set custom thumbnail size for products displayed in "New Products" widget on the homepage

Create view.xml in app/design/frontend/your_theme_namespace/yourtheme/etc/ with following content <?xml version="1.0"?> <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Anshu Mishra's user avatar
  • 8,990
3 votes
Accepted

Magento 2 Change Minicart Product Image from thumbnail to regular image

Try this, You can edit view.xml in the below path app/design/{Package}/{Theme-name}/etc/view.xml add the below code in it <image id="mini_cart_product_image" type="image"> <...
Prathap Gunasekaran's user avatar
3 votes

Thumbnail in the new order e-mails

For thumbanil it is compulsory to select thumbnail image at back end other wise you get default image you can fetch main image and resize that image for your requirement <?php echo Mage::helper(...
Murtuza Zabuawala's user avatar
3 votes

How to add "click" or "change" event on product thumbnail images in frontend?

This is also one of the answers for achieving click events on thumbnail images without modifying the fotorama.js file which suits my requirement. We can directly add the click event for the nav frame ...
Siranjeevi K S's user avatar
3 votes
Accepted

Deleted the Product image, but still the image exists in the product grid in magento 2

Magento stores information about product image in 2 places In Gallery the list of available images for product with properties In catalog_product_entity_varchar the value selected for image type ...
Victor Tihonchuk's user avatar
2 votes

Thumbnail in the new order e-mails

Try replacing your code, <img src="<?php echo Mage::getModel('catalog/product_media_config')->getMediaUrl($_product->getThumbnail()); ?>" width="135" height="135" alt="<?php echo $...
Jaimin Sutariya's user avatar
2 votes

How to get a category thumbnail or Image?

Please use this code: $catId = 566; $imageName = Mage::getModel('catalog/category')->load($catId)->getImage(); $mediaUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); echo $...
Abhinav Singh's user avatar
2 votes
Accepted

Magento 2 -All thumbnails not display

run command ./bin/magento setup:static-content:deploy or php -f magento setup:static-content:deploy from console
Arshad Muhammad's user avatar
2 votes
Accepted

Where can i edit admin thumb size?

Open vendor/magento/theme-adminhtml-backend/etc/view.xml and change width and height <media> <images module="Magento_Catalog"> <image id="product_listing_thumbnail" type="...
Sohel Rana's user avatar
2 votes

Magento 2 Rest Api get Thumbnail Image url

The reasons why Magento doesn't provide this functionality out of the box are next: To return image thumbnail URL as a part of Product with attribute or extension attribute that will mean to ...
Igor Minyaylo's user avatar
2 votes

Replace thumbnail with small image in Admin Catalog Products

Just you need to change the image type from thumbnail to small_image in view.xml Image ID: product_listing_thumbnail and product_listing_thumbnail_preview For Example: <media> <images ...
Manish Bhojwani's user avatar
2 votes

Replace thumbnail with small image in Admin Catalog Products

Follow the below steps to get the exact output. Step 1: Prepare your custom image type Vendor\Module\etc\view.xml <?xml version="1.0"?> <view xmlns:xsi="http://www.w3.org/...
Siranjeevi K S's user avatar
1 vote

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

Simply go to product edit page and resave. Is it showing now? so you need: php bin/magento catalog:image:resize Also: Any errors in browser console? or system.log and exception.log?
BartZalas's user avatar
  • 1,757
1 vote
Accepted

How to get the product image in Magento 2

Your question was not clear. Do you want to get actual image instead of thumbnail? If not, please elaborate your requirement. If it is that, check it below. Replace $product->getSmallImage() with $...
Bhargava Rama's user avatar
1 vote

How to display Name, Thumbnail Image, Price, Add-to-cart Button On CMS PAGE?

Please find the below the screen shot In order to get the below product collection in cms page Please First create Cms page under below at admin side. Cms -> Pages -> Add New Page -> under ...
Learing_Coder's user avatar
1 vote

How To Display Single Image Thumbnail in product detail page Magento 2

fotorma.js: if (size >1) { o_nav = opts.nav; o_navTop = opts.navposition === 'top'; classes.remove.push(selectClass); $arrs.toggle(...
kamal's user avatar
  • 338
1 vote

How To Display Single Image Thumbnail in product detail page Magento 2

You just set checkbox true from admin, Catalog -> Product -> Edit Product Now go to Image and video tab, Click on Your image, popup will display, SAVE PRODUCT.
Rakesh Jesadiya's user avatar
1 vote
Accepted

Resolved - Add Product Thumbnails to Custom Grid

The image attribute isn't part of your custom collection. The easiest way to display the thumbnails is changing your render function to something like below, which loads a product based on ...
subroutines's user avatar
1 vote
Accepted

Can't get thumbnail category - Magento 2.1.6

You should try using the image resize command to pre-generate all necessary resizes. php bin/magento catalog:image:resize This command gets all the images sizes that have been defined in the theme ...
Alex Dinca's user avatar
  • 2,177
1 vote

masgento 2.1 - How to get the full path of the cached image thumbnails in REST

got it solved, for who is looking for the same. the following code runs from external script hat loads magento bootstrap : use Magento\Framework\App\Bootstrap; require __DIR__ . '/../app/bootstrap....
Zorox's user avatar
  • 206
1 vote
Accepted

Magento: Display Configurable Product Image to Match Filter Selection

I have found a solution to my problem and I thought I will share it just in case if someone else runs into the same problem. What I had to do to get it working was go to System>Catalog>Configurable ...
K.I's user avatar
  • 243

Only top scored, non community-wiki answers of a minimum length are eligible