Questions tagged [product-images]

Denotes questions related to product images configuration, management and modifications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

how i add itemprop="image" on product large image?

how i add itemprop="image" on product large image?
0 votes
1 answer
16 views

images on product page magento 2 are lot loaded because of wrong path

at magento admin base url static and base url media are on http://domein.nl/static/ and http://domein.nl/media/ new photos are saved properly in pub/media/catalog/products// however on the website the ...
  • 21
0 votes
1 answer
23 views

Issue with some product images in product page

As the video below, Some products's images are not appears in the product page, but if I press f5 they will appear somehow. I guess that happened after I run this command: php bin/magento catalog:...
0 votes
1 answer
37 views

Display Product Image and Price in the Search Bar while Searching

I want to display the product with the Image and the Price with the Product Name in the search bar while Searching in the Search bar.
  • 415
1 vote
0 answers
21 views

Magento 2: Product images are not generated in media cache on importing products

Facing weird issue for 2-3 days. Images are not showing on frontend Whenever I import new products using firebear module or default importer. I tried php bin/magento catalog:image:resize, ...
0 votes
1 answer
29 views

How to show "thumbnail" instead of "swatch image"?

Anyone knows how to show thumbnail image instead of swatch? I already have setup swatch role for the whole catalog and I'm looking for a solution without modifing image role.
  • 119
0 votes
1 answer
22 views

Magento 2.4: How to show scaled images in a product list or grid?

I have 300x300 image size for "Small" images, which shown in product list and grid views. The issue is that my goods contain text and it barely visible on optimized 300x300 pictures. ...
0 votes
0 answers
13 views

how show one product with different color in product details page but every color has different url depend on color value

i saw example and i want make like that https://www.zalando.sk/nike-sportswear-club-pant-teplaky-active-pink-ni122e0d8-j11.html
1 vote
3 answers
126 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/...
0 votes
0 answers
9 views

Programmaticaly create a product and add an external image?

Magento 2.4 I am trying to create a product and use an external image as the main image. I was hoping that Magento takes the image from the external source and adds it to the right place locally on ...
0 votes
0 answers
11 views

How to get child image product in shipping email?

On the orders email I was able to like this <?php $_item = $block->getItem(); $_order = $_item->getOrder(); $imageSize = (int)$block->getConfig('sales_email/imageconfig/image_resize'); ...
  • 417
0 votes
0 answers
23 views

Get CDN/External product images to show in backend under "images and videos"

I'm getting product images from an external source. They show up in frontend but not in backend under "images and videos" how can I fix this? Thanks! :)
0 votes
0 answers
58 views

Magento 2.4.2 How to implemented single image upload in from the admin side using the UI component and Save and Show in product Edit/ Add Page

I am Trying to create Custom Field to upload single Image. With the help of various documentation I tried to implement using UI Component. Thanks for your help my code is given below. app/code/PCsoft/...
1 vote
1 answer
39 views

magento 2.4 observer on product image change

I have a grouped with some associated products. When the image on the grouped is updated, I'd like to save the same image on the associated products also. I tried with the "...
  • 187
0 votes
1 answer
10 views

Issue on assigning base image, small_image, Thumbnail_image programatically using csv?

I have created a php file to assign the base_image, small_image, Thumbnail_image using below script. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $state = $objectManager->...
  • 2,651
0 votes
2 answers
33 views

How to swap the thumbnail image on magento 2 products?

I have imported the products and product images for my new website. There are more than 5000 products have added. When assigning product image , backside of the product image was added to main image ...
  • 2,651
1 vote
1 answer
25 views

Images not showing on category page

Images of all products not showing on the category listing page, however on the product description page it is showing. I have already done Uploaded new image and set base, small and thumbnail php ...
  • 141
0 votes
0 answers
28 views

Resize fullscreen images width in fotorama

I have tried to resize the images in fullscreen fotorama, but it does not work. I have seen that fullscreen does not have width as a property and I have added it but it does not work GalleryOptions....
2 votes
2 answers
296 views

imagecolorsforindex(): Argument #2 ($color) is out of range when running bin/magento catalog:images:resize

I recently upgraded from 2.4.4 to 2.4.5. While placing the images in pub/media folder and running bin/magento catalog:images:resize, I am getting the following error imagecolorsforindex(): Argument #2 ...
  • 31
0 votes
1 answer
70 views

mini_cart_product_thumbnail not sizing to values set in etc/view.xml

I have my image sizes set in my app/design/frontend/My_Design/My_Theme/etc/view.xml but for some reason, the values for mini_cart_product_thumbnail are not being used in the minicart. <view xmlns:...
1 vote
0 answers
36 views

Product Image not showing on listing page frontend after code migration Magento 2.4.3

I moved my project to a different directory as the memory is low in the disk, everything is working fine except the product listing page where the images are missing. Showing default image. Wrong ...
  • 454
0 votes
1 answer
57 views

Full width product gallery

I am using a custom theme built off of Amasty's Jet Theme. I am trying to use the grouped product type to sell parts from a schematics image. The idea is to have the schematic full width across the ...
  • 3
1 vote
3 answers
291 views

How to add <picture> around the fotorama__img on the productpage - Magento 2.4

We would like to add a <picture> </picture> element around the main image with class fotorama__img on the productpage. How can we achieve that?
  • 1,522
1 vote
0 answers
130 views

Magento 2.3.2 > Some products images are broken and some are not loading correctly in frontend

I'm a new to magento and don't know much about magento, Recently I have installed a custom theme in magento2 and then some products images became broken and some are having images with src=".../...
1 vote
1 answer
338 views

Magento 2.4.3 media/catalog/product/cache growing very hard - each file with many different formats

my media/catalog/product/cache directory is growing very hard. Digging a bit deeper I see that every picture gets around 30 different files in my cache directory. In the picture you see the original ...
  • 423
2 votes
0 answers
22 views

How to downalod the format image in the datafeed

I would like to download the format of the images in my data feed so that I can see which ones are the wrong size. Does anyone know how I can do that?
0 votes
0 answers
523 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 ...
  • 13
0 votes
1 answer
133 views

How to get product image height & width in Magento 2?

In my product gallery code I am displaying several product images. I would like to specify each image's height & width in the img tag. How can I get each image's height & width programatically ...
  • 21
0 votes
1 answer
32 views

Magento 2.3.5-p2: Show different title and alt for product img based on store

I'm trying to show a different Title and Alt depending on the store for the product page image. For example on a english store (store id 1) xyz.com/uk/ the Title and Alt would be title="English ...
0 votes
0 answers
70 views

Products "X" and "Y" have the same set of attribute values

I'm doing something like this foreach ($arrayItemsToReplace as $key => $item){ $product->getMediaGalleryImages()->removeItemByKey($key); $product->...
  • 974
0 votes
0 answers
56 views

Product name with special characters - image types aren't set

I've seen same behavior in Magento 2.4.3 and now in 2.4.4 I upload products via API. When product name contains characters as "%" (percent), "," (decimal) and non latin characters, ...
0 votes
0 answers
38 views

Load external image urls

I would like to know if it's possible to import image as links when adding products to catalogs. I currently have an API setup that takes the individual images links them to the products and then ...
  • 1
0 votes
1 answer
30 views

Magento2 Product Gallery Images

How to add Custom Videos along with Product Gallery Images on Detail Page Thanks in advance
0 votes
1 answer
130 views

How to rename file while uploading catalog images in Magento2

When you upload a product image from backend to Magento that has the name that we are uploading like slide1.jpg I need to rename uploaded file name to productsku_slide1.jpg and same for other images. ...
  • 561
1 vote
1 answer
232 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->...
  • 2,468
0 votes
0 answers
24 views

Unable to upload image - m2

Image size and format is valid but still not able to upload image. Also facing same issue with category image upload. Not gating any error in error log files and have proper permission to var, pub ...
0 votes
0 answers
179 views

Magento 2 can't upload image to product

I can't upload some images to products, the weird thing is that it's just with some products that have small images, like 115x200px or something like that. I know it has to be something with the ...
0 votes
1 answer
282 views

Magento2, why adding Related Products or Up-sell products breaks the page?

So I'm trying to add some related products and up-sell products from admin, but as soon as I add one the page gets broken. In the page I see a full html template with some scripts and this error in ...
  • 13
0 votes
0 answers
109 views

Product Images imported from Magento 2.3.5 to Magento 2.4.4 not showing correctly

We have copied the full folder of pub/media/catalog/product/ from a Magento instance 2.3.5-p1 to a new Magento instance 2.4.4 Products are all same on both instances. Pathes as well. Product images ...
  • 67
0 votes
0 answers
44 views

How to add product image in the payload array of bulk product api via rabbitmq

I have been importing the products via rest API using RabbitMQ POST /magentoroot/rest/default/async/bulk/V1/products HTTP/1.1 Host: 127.0.0.1 Content-Type: application/json [ { "product&...
  • 2,468
0 votes
0 answers
14 views

Magento 1.9.x Add configurable product image in new order email

There are many threads that I didn't want to resurrect but none solve the problem, they work for the simple product image but not for the configurable one. Of the many, this one is the most valuable: ...
  • 1
0 votes
0 answers
128 views

Magento 2.3 - Thumbnail images not display while swatches selected for configurable product

Magento - 2.3.* Logged in customer Add configurable product to wishlist with swatches Go to wishlist page and click on the product The product page is open with selected swatches but thumbnail images ...
0 votes
2 answers
622 views

how to delete media image after we delete product in magento2?

As image plays an important role in page load time,Need to delete image too after delete of product from admin panel in Magento 2
  • 60
0 votes
0 answers
20 views

Create custom product and product media module

I need help. How to create custom product and product media module in Magento 1.9 same as Mage Product Module? Same as Mage Product Module.
0 votes
1 answer
281 views

Set programmatically image roles

I have that in my backoffice : and I need that: This solution does not work for me : if($key == 1){ $prod->addImageToMediaGallery($imgPath, array('image', 'small_image','thumbnail'), ...
0 votes
0 answers
19 views

How to get 4th image of a Product so that I can assign it a particular Attribute (hovering)?

I have a requirement to assign the 4th image of a product a custom attribute 'hover_image', which will be shown when a user hovers over the product on PLP. I have done this using position value stored ...
0 votes
1 answer
783 views

Magento 2.4.3-p1 i can't upload images, The file was not uploaded

After upgrading from Magento 2.3.7-p2 to Magento 2.4.3-P1 I can't upload images, in Magento admin, I get this error message: The file was not uploaded In var/log/exception.log file, i see this error: ...
0 votes
0 answers
47 views

Magento 2: Product image label can not be removed for Product Listing page

I have added alt text for the product and it shows correctly on the product detail page as well as a listing page but then I want to remove alt text and want to show default alt text as per Magento ...
0 votes
0 answers
25 views

Why does Magento 2 disperse product image files into multiple folders?

When uploading products into Magento 2, by default the system disperses images into folders based on the image name. file.jpg would end up in pub/media/catalog/product/f/i/file.jpg Can anyone explain ...
  • 1
0 votes
0 answers
125 views

Magento 2 - Product returns default image label when there is no label

I'm trying to get Product label on PL Page(Product Listing Page) and want to add if there is no label added from backend label should contain "Product name - Brand" but as i have debugged ...

1
2 3 4 5
26