Questions tagged [product-images]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 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
101 views
+50

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,504
1 vote
0 answers
56 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=".../...
0 votes
1 answer
28 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 ...
  • 413
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
78 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
38 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
27 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
18 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->...
  • 853
0 votes
0 answers
24 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
29 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
24 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
32 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
75 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,418
0 votes
0 answers
16 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
68 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
103 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
54 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 ...
  • 57
0 votes
0 answers
13 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,418
0 votes
0 answers
7 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
73 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
315 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
15 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
124 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
13 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
419 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
32 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
22 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
73 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 ...
0 votes
1 answer
60 views

Remove all Product images on one click of button in admin

I want to remove assigned images to specific product from admin on one click of button in magento2. Please provide specific way to implement.
  • 561
0 votes
0 answers
18 views

Batch edit Alt Text

I want to update the Alt Text for each of my 14,000 products to match them with the Product Name. Is there a script I can use or an option I can select to edit them all at once? How long will it take?
  • 1
0 votes
2 answers
72 views

Why is this code slow

We have a custom module to show images from sw3 on the product page, so the main image and any gallery images. The code works but going from a list page to the PDP is very slow and when I disable this ...
0 votes
0 answers
10 views

Magento 2.4.3 - Layered Product Images

Is there any way to layer product images so I do not need to create/store numerous images for each product? For example, if I am selling coffee mugs in various colors and offer a multitude of designs, ...
0 votes
0 answers
22 views

Magento2.4.3 Product create with images takes long time to save when ther is 3000+ products

I have a multistore website with 3000+ products, When I create a new product with images the product takes 17 - 35 seconds based on the number of images and their size. One image of size 54KB - 17 ...
  • 434
0 votes
1 answer
188 views

How to assign same image for multiple products without creating different image directory

Heii new to Magento I have product with same images for multiple products but after i upload products via csv it creates seprate image directory for the products in var/cache/ Not a developer but it'...
0 votes
2 answers
48 views

Magento2 Product image not getting displayed in search result & cart page

Magento2.4.2 Cloud. I uploaded a product image from Admin for 1 product, but the issue is that the image gets displayed on the product details page & mini-cart, but it is not getting displayed on ...
  • 3,466
0 votes
0 answers
15 views

Product create with image takes long time to save Magento2.4.3

When I create a simple product with a single image it takes 17 seconds to save, I have changed the indexing to schedule and removed all extensions and themes. On debugging further I can see that the ...
  • 434
0 votes
0 answers
42 views

Magento 2.4: Custom image role dropdown save in database

I created a custom image role drop down. I am trying to save its value into 'catalog_product_entity_media_gallery_value' table by using the observer event 'catalog_product_save_after': <?php ...
  • 161
0 votes
1 answer
257 views

use webp pictures for products

I use a magento2 webshop https://www.agoshop.at and I will use webp pictures for my products. I have convert a jpg to webp format and try to upload this webp picture to a product but the filetyp will ...
  • 1
0 votes
0 answers
40 views

Renaming product images once uploaded

I am not a developer! Can we rename uploaded product and category images, or do you have to name them before uploading?
0 votes
0 answers
31 views

Product images not found

Hi I know I ask this a hundred times but my patience is over and I just hope someone will help me I think it's a matter of removing "../" but where? http: //localhost/magento242/pub/media/...
0 votes
0 answers
24 views

Problem with product attributes

I have Magento 2.4.3 store. I'm using claue 2 theme which has the functionality to swap images on hover. I need to attach a swap attribute (which is a product attribute) to every product's second ...
1 vote
2 answers
172 views

Delete all images in pub/media/catalog/product not linked to any product

I am facing a website wich media directory size is 88 GB, and that is getting problems with the server and some processes. After analyzing the product date, I determined that in this directory exists ...
0 votes
0 answers
25 views

Use In Stock simple product image instead of configurable product in magento 2.4

Is there any way through which a simple product image will be used by the configurable product? For example, I have one configurable product of which there is 4 simple product with different images ...
0 votes
1 answer
49 views

Not able to upload product images in the admin in Magento 1.9?

We have Magento v1.9.0.1. when we try to upload product images in the admin we get a JSON-related error in the browser console. we checked the error logs but didn't find any specific cause of this ...
0 votes
2 answers
93 views

Magento 2.3 images in catalog_product_entity_media_gallery_value vs catalog_product_entity_varchar

When we update images programmatically, we see correct images in admin, but not in shop frontend. Correct images are saved to catalog_product_entity_media_gallery. But magento shop frontend shows ...
0 votes
0 answers
40 views

Image resize issue while uploading product images from admin

I have my staging environment setup using docker and the magento setup is in production mode. Now, when I am trying to upload product images from admin, it's not resizing the images. And I cannot ...
0 votes
0 answers
23 views

Image not showing on product details page

Image showing on list page and on admin side but the image is not showing on product details page. I have run all the commands. Image load first then goes.
0 votes
0 answers
91 views

PDf invoice Image issue

I am using Magento 2.3.7, and when I add the image to the invoice it's showing only the image path but does not display the image in the downloaded pdf invoice. Below is the code that I am using. file:...
0 votes
0 answers
65 views

Magento 2 : Image cache issue when update bulk product programmatically

In my case, I have to update product images and other data programmatically from API in Magento. All data is updated after the indexer command but for new images, I have to flush the product image ...
  • 1,038

1
2 3 4 5
25