Questions tagged [thumbnail]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
3answers
9k 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/...
7
votes
1answer
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 ...
6
votes
2answers
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)
5
votes
1answer
1k 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 ...
4
votes
5answers
19k 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 ...
4
votes
2answers
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 ...
4
votes
2answers
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 ...
4
votes
0answers
639 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 ...
3
votes
3answers
187 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($...
3
votes
1answer
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..
3
votes
2answers
3k 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 ...
3
votes
1answer
658 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 ...
2
votes
4answers
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 =...
2
votes
1answer
3k views

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

Friend please help me how to get product images and thumbnail images.
2
votes
2answers
3k 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 ...
2
votes
4answers
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-...
2
votes
1answer
4k 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 ...
2
votes
2answers
819 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/...
2
votes
1answer
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/...
2
votes
1answer
325 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?
2
votes
1answer
189 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
2
votes
2answers
402 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 ...
2
votes
1answer
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 ...
2
votes
1answer
673 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....
2
votes
0answers
19 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-...
2
votes
0answers
50 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 ...
2
votes
2answers
1k 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 ...
2
votes
0answers
738 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 ...
2
votes
2answers
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 ...
2
votes
2answers
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.
1
vote
1answer
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->...
1
vote
3answers
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 ...
1
vote
2answers
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="<?...
1
vote
2answers
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 ...
1
vote
3answers
274 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 =...
1
vote
2answers
2k 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 ...
1
vote
1answer
326 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
1
vote
1answer
263 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 ...
1
vote
1answer
526 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/...
1
vote
1answer
449 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 ...
1
vote
1answer
948 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!
1
vote
1answer
348 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?
1
vote
1answer
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 ...
1
vote
2answers
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 ...
1
vote
0answers
7 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-...
1
vote
2answers
108 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 ...
1
vote
0answers
43 views

Add transparancy in ->backgroundColor(array(0, 0, 0))

I want to add Transparancy in this code line. I'm using Magento 1.9.3.10. I already tried ->backgroundColor(array(0, 0, 0, 0.4)) but this does not seem to work. It just show's black background. Full ...
1
vote
1answer
219 views

Magento2 How to make Thumbnail zoom on click on product page?

Magento2 How to make Thumbnail zoom on click on product page?
1
vote
0answers
43 views

How to show product labels on Thumbnails

Have labels that show on product images on the category page and product page but they do not show on thumbnail images when doing a product search. How can get the product labels to show on the ...
1
vote
0answers
572 views

Magento 2 : How to fetch product thumbnail images in admin grid?

<?php namespace Magneto\PopupQuestion\Ui\Component\Listing\Column; use Magento\Framework\View\Element\UiComponentFactory; use Magento\Framework\View\Element\UiComponent\...