Questions tagged [product-images]
Denotes questions related to product images configuration, management and modifications.
1,264
questions
4
votes
2
answers
2k
views
How to show all product thumbnails as a grid (no carousel/ribbon) in product page on Magento 2?
I've been searching for an answer for a while but maybe I'm not searching correctly... We're upgrading to Magento 2 (2.3.2 to be exact) and we're modifying our theme based on Luma. The product page ...
0
votes
2
answers
1k
views
Product image not displaying in Product listing Page
I have created one attribute called imageUrl for importing product image url. And made some changes in media.phtml and list.phtml. Now product images not displaying in product list page but it ...
0
votes
1
answer
1k
views
Media main image not changes with swatches magento 2.0.2
I have facing some issues with configurable product. when i click on swatches main image not changed. my magento is 2.0.2.
can you please help to resolve the issue. thanks
1
vote
4
answers
3k
views
Magento 2.3 can't upload product images
Every time I try to upload product images on my Magento 2.3 website, I get the following error:
A technical problem with the server created an error. Try again to continue what you were doing. If the ...
2
votes
2
answers
2k
views
Magento2-Product PNG Image is resizing as Transparent due to which it's showing as blank on Product/Category/Product Admin Grid Page
PNG product image is not showing on the front end.
When i checked for the reason then found this format is resizing but always resized a blank image due to which it's not showing(as we know that to ...
5
votes
1
answer
2k
views
Magento 2 : Display grouped product pictures in template
I am trying to display the grouped product images on my product page. So I extended the grouped.phtml file in my theme and modified it as follow:
<?php
/**
* Copyright © 2016 Magento. All rights ...
1
vote
2
answers
292
views
Magento media cache url
When images are uploaded, they are resized and put into diffent cache folders.
"pub/media/catalog/product/cache/1cd59219f95f9c415e6b76e445689a097/J/K/JK791735.jpg" ect..
Where in Magento is ...
2
votes
1
answer
2k
views
Magento2.3.1 IN porto theme product image on detail page not loading
In magneto2.3.1 - I have used porto theme I notice some images not generated cache inside, I apply all commands on my live site, but not getting any error and also I apply image resize command php bin/...
7
votes
3
answers
3k
views
Product image not zooming in properly when hovering on image at product detail page
In my product page detail when i try to hover the product image there's only white box with low opacity overlaying at the top of my image like this :
Usually in Magento 2, when hovering the image it ...
0
votes
1
answer
31
views
I want to show my product video in the first position in carousel
I want to show a video of the product in the first position from the carousel.
When the user clicks on the product If the product contains video in the carousel slider.
How can I achieve this?
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 ...
4
votes
1
answer
2k
views
Magento 2 : settings.$elementF.fotorama is not a function
I installed Magento 2.2.2 and getting issue with image gallery js. Product page images are not loading sometimes with below error
settings.$elementF.fotorama is not a function
0
votes
1
answer
1k
views
Magento 2 Get simple product image URL instead of parent image
the below code getting parent configurable parent image even if simple, So how to get the simple url also?
$_item = $block->getItem();
$objectManager = \Magento\Framework\App\ObjectManager::...
1
vote
3
answers
4k
views
Importing produtcs with images from .csv file error
When I try to import a .csv file with products and images I got this error:
Imported resource (image) could not be downloaded from external
resource due to timeout or access permissions
In the .csv ...
0
votes
1
answer
1k
views
Magento 2 set product image role programmatically
Hello and this is my code:
$imgURL = 'path/to/my/image.png';
$fileSystem = $objectManager->create('\Magento\Framework\Filesystem');
$mediaPath = $fileSystem->getDirectoryRead(\Magento\Framework\...
0
votes
1
answer
2k
views
Magento use associated simple product image for configurable product
Is it possible to make Magento use the image of a simple attached product on configurable products?
So if one of the simple products have an image, add it to the configurable product, else use ...
4
votes
1
answer
2k
views
Product images do not show on Category pages and do show on product view pages
There is a lot written about this kind of issues. but all do not seem to be the same as what we are experiencing.
We have a big portion of products (so not all) that has product images not shown in ...
2
votes
1
answer
2k
views
Magento 2 - Show catalog product image changes on mouse over
I would like to show product image changes on mouse over. I mean to call a second image during mouse over in magento2.
3
votes
2
answers
5k
views
$_FILES array is empty while uploading product image in Magento 1.7 admin
I am getting error $_FILES array is empty while trying to upload an product image in magento 1.7 backend. 2 days ago I installed patches from 5344 to 8788.
How can I rid off this problem. please ...
0
votes
1
answer
1k
views
How Importing Images with Labels using addImageToMediaGallery in magento2?
Magento2.1.x
I had a problem adding a product Image Label programatically. Here's the code I used:
$imageLabel1 = 'Test1';
$imageLabel2 = 'Test2';
$imageLabel3 = 'Test3';
$product-&...
1
vote
1
answer
2k
views
Magento 2: Products images are not showing on category page
I have a huge catalog and imported images for them by csv file. Unfortunately images are not showing on category page but they are showing on view page.
I executed all the commands such as:
php bin/...
1
vote
1
answer
2k
views
How to connect AWS S3 bucket images to my website
I have installed the extension https://github.com/thaiphan/magento2-s3/ for connect to S3 bucket.
When I proceed to sync button then images not uploaded proper format on AWS S3. Please check the ...
0
votes
0
answers
54
views
Product Images Problem after saved in All Store View Scope from Admin Panel
Magento 2.4.6-p1 recently upgraded from 2.4.5
Updating any product image is not reflected on the front end, However when I change the scope from All store view to Default store view and update images.
...
0
votes
1
answer
3k
views
How to add image roles programmatically in products Magento 2?
I am creating products programmatically. I am using below code to add product image.. Images are adding perfectly fine.. but image roles are not showing. Can anyone please help me to add image roles ...
0
votes
1
answer
35
views
How to display product image with custom role on carousel?
I am trying to include a product image that has a specific custom role (in the example below it's hover_img)
The file I am doing this on is:
vendor/magento/module-page-builder/view/frontend/templates/...
0
votes
2
answers
2k
views
Product image not showing in Magento
I have a specific product and its image is not shown in the front-end. In the admin panel in Catalog->Manage Products->Images I can see all the images of its configurable product. So I don't ...
0
votes
1
answer
1k
views
Magento default zoom for product image is not working properly
I'm using Magento 2.2.3. The issue I'm facing is that the default zoom functionality is not working properly in the Product Image.
Here's the link to our development site:
http://37.152.57.114/min-...
1
vote
2
answers
1k
views
Importing product images from URL problem
I'm trying to import some products from a csv with images that are stored on an external server. The images are saving to the var/import folder ok but they won't assign to the product. I'm using the ...
3
votes
1
answer
2k
views
Serve resources from a consistent URL - 2 images URL for single product, same image
I have one image for all three small, base and thumnail.
However, when I am uploading a product , and selecting three options, magento automatically takes this as 2 image URLS in 2 different folder ...
0
votes
1
answer
1k
views
Magento 2 : Add discount label on product page (already in Category view)
Hi the Magento Community,
I would like to add a discount label on my pictures on my product pages : I already have one for each product on category page (see picture below) but not on product pages.
...
0
votes
2
answers
1k
views
Magento 2.4 libpng warning: iCCP: known incorrect sRGB profile, Wrong file, file does not exist
I'm getting this error "libpng warning: iCCP: known incorrect sRGB profile"
when running php bin/magento catalog:image:resize.
Please is there anyone who could help me get this fixed? Thank ...
2
votes
3
answers
2k
views
Magento 2 (Ubuntu) - Thumbnail image caching fails
I'm using Magento 2.1.0 with a bought with a template (SM Sawyer) on Ubuntu 16.04.1
Our products are being inserted/controlled by an external registration system.
After this external source adds ...
1
vote
1
answer
2k
views
Can I upload SVG images to the products on Magento 2.2.3?
Is it possible to upload SVG images to the products on Magento 2.2.3. I have read many topics related to my issue, but I didn't get a clear solution on that. Please let me know whether it's possible ...
4
votes
1
answer
2k
views
How to show image in grouped product
For grouped products, I would like to see the picture of the by-products.
I tried several things but without success:
in files : Magento_GroupedProduct\templates\product\view\type
In the loop of ...
2
votes
3
answers
2k
views
catalog:images:resize not working in CLI in 2.3.4
We just upgraded our dev site from 2.3.3 to 2.3.4 and I'm trying to run the bin/magento catalog:images:resize command in CLI in hopes that it will fix some image styling issues I'm trying to resolve (...
0
votes
0
answers
14
views
Custom Gallery View for Virtual Products
In Magento 2, how can I change the product gallery settings to show the nav as dots on mobile and thumbs on desktop? This needs to be for the Virtual Product Type ONLY.
I think I should be able to do ...
3
votes
2
answers
3k
views
How can we add/update a image path with own code without using addImageToMediaGallery()
Can we update a own defined product image path to database, I am adding products with own custom code.I want to add image database without help of
->addImageToMediaGallery()
Is it doable??
...
2
votes
2
answers
5k
views
Magento 2 - Why is product image size & dimensions changed after upload?
When uploading new images to a product in Magento 2, it is not only decreasing the dimensions of the image, but it's increasing the image file size:
Image Details Before Upload
Dimensions: 1185 × ...
0
votes
0
answers
17
views
Make a watermark a percentage of the original image size?
Magento 2 uses fixed pixel dimensions to specify the size of the product image watermark. This is a problem as the watermark could look very small or very big on the product image, depending on the ...
3
votes
1
answer
5k
views
Magento2 Product import (image filenames)
I'm not sure that this is a bug, as it's intentional from the looks of it, but ...
I'm working on a migration from Zencart and the original site's media folder has been downloaded and we've written a ...
1
vote
2
answers
3k
views
Get product image cache path sql
I need to get product image path with raw sql. Where does Magento store product image cache path? Table catalog_product_entity_media_gallery stores images but without the cache path (/2/0/20.jpg).
1
vote
2
answers
4k
views
Change media image directory path
I know it's not recommended but I want to upload product images to any folder in my web server's root directory instead of magento's media folder.
<upload_dir config="system/filesystem/media" ...
0
votes
2
answers
19
views
The images are not loading properly
we have such a problem on magento 2, it started to do this to us when we added more sites, images and products.
It is that when I open our site www.bridgeacademy.cz, go to products https://www....
0
votes
0
answers
11
views
Product Image Thumbnail Size
The thumbnail image of some products are not uniform leading to weird size differences that throw them off. Here's an example to see it:
https://www.jadeed.store/categories/books/dictionaries.html
...
3
votes
1
answer
2k
views
(Solved) Magento 2, Add product image in all transaction emails(shipment, invoice, credit memo)
I have managed to add products images in new order email using this solution:
Magento 2 product image in new order email
Unfortunately this piece of code is not working for other transactional emails:...
5
votes
2
answers
4k
views
Magento2.3.1: Images not displaying
Images are not displaying in magento2.3.1.
https://www.depoto.com/test-product.html
I gave the permissions for media folder 777 already.
We are not using any extension which relates to the product
...
0
votes
1
answer
34
views
Products Using Placeholder Image in Category View
A script was run to clear unused product images to free up space on the server, but instead of clearing unused images, it accidentally cleared a portion of images currently in use by products. The ...
0
votes
1
answer
25
views
How I can retrieve the Image Url of a given product?
I have a custom block in magento 2.4 where I retrieve a image List
namespace Pcmagas\FirstModule\Block\MyList;
use Magento\Catalog\Model\ProductRepository;
use Magento\Framework\Api\...
0
votes
1
answer
1k
views
Magento 2 : How to Load Image Collection in Category Listing Page
Need to Image gallery collection load to following path in magento 2.1.6 category listing page ,
\vendor\magento\module-catalog\view\frontend\templates\product\image_with_borders.phtml
( Or )
app\...
2
votes
3
answers
5k
views
Magento 2 : set product image programatically
I want to upload a product along with product image, please suggest how to set path or upload image for a product.
here is my code
try{
$_product->setName($product["name"]);
...