Questions tagged [thumbnail]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13 votes
3 answers
12k views

Magento 2 Rest Api get Thumbnail Image url

How do we get the url to thumbnail image of of a product through rest API. /V1/products/{sku}/media would get us the relative url such as "/m/b/mb01-blue-0.jpg" and the image url would be baseurl/...
Mohammed Shameem's user avatar
7 votes
1 answer
4k views

Show different thumbnail image set for each color picked in configurable product

Hi everybody (first post here), I've been trying Magento 1.9 display a different set of thumbnail images for every option in the color swatch, in a configurable product, but with no success. For ...
abiyi's user avatar
  • 217
6 votes
3 answers
2k views

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

I want to know how can I display thumbnail image, if the product has only one image . (product detail page)
kamal's user avatar
  • 338
5 votes
1 answer
2k views

Magento 2 - Category Thumbail

I'm currently using $_category->getImageUrl(); to return a category's image. How can I get a smaller thumbnail of the category image? I've tried $_category->getThumbnailUrl();, but that doesn't appear ...
Harry Manback's user avatar
4 votes
5 answers
20k views

How to get a category thumbnail or Image?

I am stuck at this point. I want to display a grid of categories thumbnail/image var_dump($_category->getData('thumbnail')); return NULL Even when I do var_dump($_category->getData()); here is ...
wlin's user avatar
  • 392
4 votes
2 answers
4k views

Magento 1.9 thumbnail photo quality

I hope you can help me to resolve an issue I am experiencing with Magento, When I import product images, magento automatically decreases the size to fit a thumbnail size photo, which dramatically ...
Lee Knowles's user avatar
4 votes
2 answers
8k views

Disable magento's compression of product images

I have created versions of my product images that look exactly how I want them to when viewed on the web. They are also at a size (weight) that I find acceptable. The problem is, once I upload to ...
Klistrian's user avatar
  • 113
4 votes
0 answers
652 views

Tapping thumbnail photo doesn't change large photo on mobile [closed]

I'm new to Magento so please bear with me. When viewing certain products, clicking/tapping on a thumbnail image does not reload the large image. Instead, when I click/tap on the images, the browser ...
TJ Kelly's user avatar
3 votes
2 answers
1k views

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

I am trying a "click" or "change" event on fotorama thumbnail images. While clicking the thumbnail images I need to fire a "click" or "change" event. I have ...
Siranjeevi K S's user avatar
3 votes
2 answers
5k views

Magento 2 Change Minicart Product Image from thumbnail to regular image

After editing the minicart for a couple of days now i've noticed that the images are smaller versions of the images that you would see on the product pages. This means as i'm upscaling them to fit a ...
A. Fletcher's user avatar
3 votes
3 answers
196 views

Thumbnail in the new order e-mails

I'd like to show the product thumbnail in the new orders emails. I tried this code: <img src="<?php echo Mage:: getThumbnail('catalog/product_media_config') ->getMediaUrl($...
stsnow's user avatar
  • 219
3 votes
1 answer
2k views

Magento 2 : Admin grid with thumbnail field

I have added a custom admin grid using ui component, now I want to add a thumbnail field in the grid. Please help me to do the same..
E.B's user avatar
  • 1,010
3 votes
2 answers
812 views

Replace thumbnail with small image in Admin Catalog Products

I'd like to display "small image" in place of "thumbnail image" for each product in magento administration Catalog > Products. I tried editing file /vendor/magento/module-...
zekia's user avatar
  • 620
3 votes
2 answers
4k views

Programmatically Set/Change Thumbnail Image To Another From Gallery

I have a huge catalog of products which all have about 4 images per product with the same naming structure being something like "xxxxxx_FR.jpg" "xxxxxx_BK.jpg" "xxxxxx_FL.jpg" where the x's represent ...
James's user avatar
  • 458
3 votes
1 answer
713 views

Simple Product Thumbnail Not Displaying Correctly in Shopping Cart

I'm trying to show the correct image for each product that is in the shopping cart (One Step Checkout). Currently when a customer chooses a product, if the product has multiple colour options, it ...
coopwatts's user avatar
  • 141
2 votes
4 answers
4k views

how to get thumbnail of subcategory in a loop?

$category = Mage::getModel('catalog/category')->load('2')->getChildrenCategories(); foreach ($category as $cat){ $entity_id = $cat->getId(); $name = $cat->getName(); $url_key =...
Muhammad Shoaib Murtaza's user avatar
2 votes
1 answer
5k views

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

Friend please help me how to get product images and thumbnail images.
pushpendra's user avatar
2 votes
1 answer
5k views

Check if product has uploaded image In Magento 2

I need to generate an email template with product image included in it, i need to check if the product image exist or not , if product image not exist i want to generate magento 2 default product ...
simple guy's user avatar
  • 2,484
2 votes
4 answers
3k views

magento 2 catalog:images:resize - Notice error

I have strange error in magento when trying to regenerate thumbs: $ php bin/magento catalog:images:resize Notice: Undefined index: Magento\Catalog\Model\Product in /Applications/MAMP/htdocs/mini-...
Lucas D's user avatar
  • 51
2 votes
2 answers
930 views

Magento Cart: Thumbnail Images Don't Appear in Chrome or Safari

I'm unable to see my product thumbnails on the cart page when I use Chrome or Safari. They do however appear in Firefox. The line rendering these images is in app/design/frontend/my_package/my_theme/...
blockletter's user avatar
2 votes
1 answer
4k views

How to regenerate product thumbs programatically?

I know there is a way to delete image cache: protected function cleanImageCache() { try { echo "Cleaning image cache... "; flush(); echo Mage::getModel('catalog/...
george's user avatar
  • 425
2 votes
1 answer
359 views

How rezise the thumbnails image in magento 1?

The magento thumbnails from the products are wrong format. (square) I want all the pictures an other format 2/3. How or where can i change this to get effect?
Peter Daalmeer's user avatar
2 votes
2 answers
1k views

Get Category image url in magento 2

Can any body tell me how can we get The Category thumbnail image url and Icon image url to display image on frontend in magento 2.3.2
Nafsss's user avatar
  • 760
2 votes
2 answers
774 views

Magento 2 Thumbnails missing in store view (language)

I'm using Magento 2.3.1. We have 3 store views for multi language. One store view (German language) doesn't display category thumbnails correctly. The other do not have any problems. We tried ...
AntondeG's user avatar
2 votes
2 answers
2k views

Magento: Display Configurable Product Image to Match Filter Selection

Example: I have a configurable product, it has 2 colour options - green yellow and white blue. It is located in t-shirts category. When I navigate to t-shirts category on my website I see my products ...
K.I's user avatar
  • 243
2 votes
1 answer
677 views

Category thumbnail at the menu [closed]

I'm Using a mega menu extension for magento. I need to display a thumbnail before the category link in top navigation menu. So far, I've tried adding getThumbnail() ?>" /> to my menu view file (top....
eLogic Studio's user avatar
2 votes
0 answers
68 views

Magento2 how to display video as a thumbnail image in admin grid

I want to display video as a thumbnail in the custom admin grid. you can get the reference from the below screenshot. https://i.imgur.com/UTBHZvM.png
Ekta's user avatar
  • 101
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
100 views

Thumbnails not appearing in either back or front end of store

Weird issue. I uploaded images to each of my products and until recently, the thumbnails appeared both on the back end and the front end of Products. However, lately, that has changed and now even ...
Adam Bell's user avatar
  • 155
2 votes
2 answers
2k views

Product Thumbnail showing Placeholder in Frontend - Actual Image in Backend

I'm not sure when this started, but all thumbnail images on all products in all stores/store-views are defaulting to the placeholder image: I have checked permissions, file paths, and uploaded new ...
Steven J's user avatar
  • 808
2 votes
0 answers
865 views

Image Thumbnail not showing in Magento 2.1 admin panel

Im working on a custom module in magento 2.1 which has category attribute to upload thumbnail image from Dashboard>Products>Categories . When i try to upload an image, the preview is shown and the ...
Abin Jose's user avatar
2 votes
2 answers
2k views

Imported image roles are lost on update in Magento 2

I use an import script to create products with associated images that are assigned to roles thumbnail and small image. It works well, products and images are imported and they display as thumbnail ...
Gael COAT's user avatar
  • 387
2 votes
2 answers
5k views

Is there a way to add image alt tags to all the images? [closed]

I'm looking to add alt tags to all the images on a Magento website, is there a way to do this without going through each individual product and i want to include the alt tag in the thumbnails as well.
Luke's user avatar
  • 29
1 vote
1 answer
2k views

Add category settings and thumbnail programatically/in front end

I'm currently using the below to add a category programatically/in the front end <?php $category = Mage::getModel('catalog/category'); $category->setName('new_category'); $category->...
odd_duck's user avatar
  • 1,396
1 vote
3 answers
6k views

Magento 1.8.1.0 WYSIWYG editor is not displaying thumbnails in image manager

I am posting this for comments about the bug, and to help anyone who have the same issue. (answer posted by myself) When using the WYSIWYG editor and inserting images the image manager is not ...
ProxiBlue's user avatar
  • 9,926
1 vote
1 answer
821 views

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

I have deleted the product image using the following code $imageProcessor = $_objectManager->create('\Magento\Catalog\Model\Product\Gallery\Processor'); $images = $product->...
Jaisa's user avatar
  • 2,606
1 vote
2 answers
5k views

Get the category thumbnails instead of image on sub category page

I am currently getting category image with the following code: <li class="item <?= $class ?> sub-cat-items"> <a href="<?php echo $_category->getURL() ?>" title="<?...
Xabby's user avatar
  • 529
1 vote
2 answers
2k views

Magento 2 -All thumbnails not display

I installed Magento in XAMPP, and the installation is fully complete. However, when I go to Fontend and Backend, the loading is very long, also all the thumbnails crash. I tried install again, but the ...
MRBALL DX 's user avatar
1 vote
3 answers
277 views

Using local helper to get thumbnails in minicart

This is my code that imports the images from the server <?php class Bundle_LocalHelpers_Helper_Basic extends Mage_core_Helper_Abstract { public function getImageUrl($product) { $storeId =...
Bako Gdaniec's user avatar
1 vote
2 answers
5k 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 ...
Vinod Kumar's user avatar
  • 2,045
1 vote
1 answer
416 views

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

I need to display all my products like, Sku Name Price Thumbnail Add-to-cart(Button) How can i get all above details on CMS Page? Note : Add-To-Cart Error
zus's user avatar
  • 165
1 vote
1 answer
268 views

Can't get thumbnail category - Magento 2.1.6

I checked quite many threads about this topic but was not able to solve the issue. When I open a category overview I don't get the thumbnails. Opening the product details I can see the main image and ...
David M.'s user avatar
1 vote
1 answer
567 views

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

masgento 2.1 - How to get the full path of the cached image thumbnails in REST i know that the images are in /pub/media/catalog/product/ i need to know how can i get the cached version: /pub/media/...
Zorox's user avatar
  • 206
1 vote
3 answers
2k views

Change the size of the swatch image

I'm looking to change the size of the default swatch thumb in the layered navigation. I've tried changing the view.xml from the theme and running: php bin/magento catalog:images:resize The command ...
David Henry's user avatar
1 vote
1 answer
457 views

Add Image Dimensions to Cache Thumbnail

According to gtmetrix.com, I need to specify image dimensions on /media/catalog/product/cache/1/thumbnail/300x300/...... I know what I need to do; in that I need to add 'width="300" height="300" but ...
IVCatalina's user avatar
1 vote
1 answer
980 views

How can I change the quality of my thumbnails?

My product image looks very good but somehow magento is making my thumbnails looking pretty bad. How can I fix this problem?(Setting?/Code?) Thank you!
urson88en's user avatar
  • 123
1 vote
1 answer
356 views

Does Magento have the feature to change the color swatch on selecting a different color thumbnail?

I was checking if Magento 1.9.2 can change the color swatch on clicking over an image thumbnail of a different color. Is this feature configurable?
Hari CL's user avatar
  • 13
1 vote
1 answer
2k views

Fishpig Wordpress Magento fallback featured image / post thumbnail image [closed]

I use Fishpig extension to show my blog posts in Magento. In Wordpress with below code i show a custom fallback-image if there is NOT a featured image set (in Wordpress admin). <?php if ...
Meez's user avatar
  • 483
1 vote
2 answers
1k views

Is there a way to change cart product thumbnails?

I'm using the following code to add cart products manually. The following code works fine, except that I would like to change the cart product thumbnails. Can some one help me with the thumbnail ...
user1897581's user avatar
1 vote
2 answers
540 views

Thumbs not showing in 'insert file' in admin

For backend - both in the 'Media Gallery' and 'insert file' the thumbs are not being shown. Broken links are being shown. I have tried resetting all the file and folder permissions - no change I ...
Andrew Griffiths's user avatar