Questions tagged [product-images]
Denotes questions related to product images configuration, management and modifications.
1,255
questions
4
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:...
6
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
125
views
Assigning Thumbnails via Magento REST API
I am trying to add thumbnail images to SKUs via REST API. However, the image is added but does not show as a thumbnail. Please see my POST request below
https://url.co.uk/rest/V1/products/231877/media
...
0
votes
2
answers
1k
views
Magento 2: How to add external image url / CDN url for product images on category and product details pages?
I am using Magento 2.3.3. I need help to add CDN url only for product's images on category and product details pages.
NOTE: Except product images, no images will come from CDN.
Thanks in advance.
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"]);
...
0
votes
2
answers
1k
views
how to link product images on homepage/category page to product page
For this site I need the product images from the homepage or the category page to link to the product. Right now when you click on a product image it doesn't link to the product page. It does nothing. ...
-1
votes
1
answer
2k
views
images loading too slow on product page
i am using the porto theme and images are loading slow even when they are small in size and the server is very fast. it happens in the product page.. what's the cause of this? is that related to the ...
0
votes
0
answers
19
views
The image content is invalid. Verify the content and try again
We are running a custom import and some products are gettign the error
The image content is invalid. Verify the content and try again.
I found a workaround to this issue saving my model instead of ...
0
votes
1
answer
1k
views
Re-import images for multi-store with maintained image roles
I have an existing web site with thousands of products. I have several storefronts and all products are available on all stores using the same product images with the same image role settings (i.e. ...
1
vote
1
answer
2k
views
Magento2 - What is the best way to remove and add an image in magento using rest API?
For an SKU, I have multiple images. Every time I change something related to the SKU, I do a PUT. But before that I also DELETE the images using in a loop
https://<magentoInstance>/rest/all/V1/...
0
votes
1
answer
2k
views
Image size via view.xml - possible to set up for category specifically and NOT globally only?
For Magento 2 a new feature is the view.xml, which allows me to configure image sizes globally. Image sizes on category, product, and basket pages can all be defined within this xml file by width, ...
1
vote
2
answers
4k
views
Product image not showing into after upload to server - magento-2 data migration
Recently I have migrated the magento-1 (ver: 1.9.1.1) data to magento-2 (Ver: ver: 2.1.7) fress version using data migration tool. And it working perfectly in our local computer (localhost).
I found ...
2
votes
1
answer
2k
views
Magento 2 How to resize product gallery images?
I have to resize the product gallery images.
I'm using this link to resize image
Resize Image
but it's only allow to resize image product_base_image. While I have to resize all other image then ...
0
votes
1
answer
2k
views
Magento 1 - Product Image default position not changed in magento
I tried to change the default position for each image in product.
$products = mage::getModel('catalog/product')->load(1311);
$attributes = $products->getTypeInstance(...
2
votes
1
answer
1k
views
How can I get the second Image of a product in Magento2?
I want to use the first and the second image of a product, I'm now able to use the first one. But how can I reach the second image?
Does the $_product->getMediaGallery('images') exists in Magento ...
2
votes
1
answer
1k
views
Programmatically rename product images--existing images already uploaded--for SEO
I would like to create a simple script to programmatically rename existing, already uploaded product images (without having to re-upload them or use the admin backend).
To process this in manageable ...
1
vote
0
answers
25
views
Delete product iamges and Add images programatically Issue
I have to import the product images by script for this I'm using below script but getting the error when save product.
public function __construct(
\Magento\Catalog\Model\Product\Gallery\...
0
votes
2
answers
40
views
Google Chrome Issues Version 127 Adding images to product
When I try to add an image to the product using the admin panel, only those images that will fit in the last line remain (if i change the screen width, the number of images will also change), all ...
2
votes
2
answers
1k
views
Magento 2.4.5 - Product images are not showing up on the front end
Magento version - Adobe Commerce ver. 2.4.5-p1
Issue - Product images are not showing up on the front end.
I'm debugging this file, getting below data.
vendor/magento/module-catalog/view/frontend/...
4
votes
1
answer
3k
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
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 ...
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
83
views
Magento 2.4.6-p4 product images have washed colours
Today I discover something strange. It seems that magento renders the images with different colours in admin than in frontend. Here is a jpg image compared:
Left image is shown in admin. The right ...
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/...
1
vote
2
answers
2k
views
magento product resized image optimization
I have optimized product images: when I upload those in admin they remain as optimized. However, in fronted when I resize images with cache, these already optimized images need to be optimized.
How ...
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 ...
0
votes
1
answer
2k
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
3
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 ...
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 ...
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 ...
0
votes
1
answer
2k
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
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
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 ...
6
votes
8
answers
18k
views
The image cannot be removed as it has been assigned to the other image role?
I am using Magento 2.1.4 unable to remove the image while removing it noticing "The image cannot be removed as it has been assigned to the other image role".
How can I overcome this?
I have ...
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 ...
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.
1
vote
1
answer
3k
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/...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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??
...
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 ...
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 ...
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 ...
0
votes
3
answers
2k
views
Magento2 - How to get Image Size?
For Image optimisation, I want't to get Product Image Size. (Either in KB or MB etc.)
Ex: 6 KB, 6KB,5KB etc.
I am using following code on root path.
<?php
error_reporting(1);
ini_set('...
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.
...