Skip to main content

Questions tagged [product-images]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
59 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 ...
G. G.'s user avatar
  • 1,191
0 votes
0 answers
12 views

var/import product images not saving backend

When we upload product from import section, We are getting below error. I tried below command, still same result : Path : /Var/import/images Do i need to change file permission ? Before If we use ...
Baby in Magento's user avatar
0 votes
1 answer
27 views

Magento 1.9 sorting media gallery images with base image on first page

From a product I want to get all the images it has in the gallery and sort them so that the main/base image of the product is first in the list. Firstly, I have a problem because I can't get the main/...
Franci Melink's user avatar
0 votes
0 answers
11 views

Create and Add Images to Products using Image Data

How can I create and attach images to products in Magento2? I have an Image base64 encoded body, name, extension, and mime type. Basically, all the required info to create an image. Also, note that I ...
Anurag's user avatar
  • 5
0 votes
1 answer
44 views

Image Intrinsic Size Is Different Comparing With Local And Production

i have two product pages whose images are different in sizes when they are rendered , even though i have used the media backup from production in local and and all code base are same without any ...
Bharath Kumar's user avatar
1 vote
0 answers
17 views

Image Not Shown Unless Added & Deleted First

I've been working on a module that adds Configurable Child Products to Cart at the Simple Product they are. This all works fine. The part of the module I'm working on now is to get the Child Product ...
Chris Oliver's user avatar
1 vote
1 answer
297 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. ...
ishaq's user avatar
  • 195
0 votes
1 answer
61 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/...
NoDachi's user avatar
  • 139
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 ...
cjochum's user avatar
  • 131
0 votes
0 answers
29 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 ...
Nick's user avatar
  • 121
0 votes
1 answer
57 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?
tehwain99's user avatar
0 votes
0 answers
12 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 ...
sarmad95's user avatar
0 votes
1 answer
132 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 ...
Bluestocking's user avatar
0 votes
1 answer
39 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\...
Dimitrios Desyllas's user avatar
0 votes
2 answers
26 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....
M M's user avatar
  • 1
0 votes
0 answers
25 views

Product variant URL with attribute and value IDs: doesn't switch image to selected one

In magento 2 is possible to call a specific product variant just appending to the "normal" URL: #Attribute_ID=Value_ID I've read in various posts that this functionality should also involve ...
user113280's user avatar
0 votes
0 answers
46 views

How to find products which has images with 0 byte?

Some products have images with 0 bytes; this means the images don't exist in the Magento media directory. How can I find those products to delete them?
Anass Hl's user avatar
0 votes
1 answer
302 views

How to export all product's images using Magento 2 built-in export feature?

I'm managing a Magento ver. 2.4.3-p1 ecommerce. I tried exporting all our products using the built-in export feature and I noticed that the resulting .CSV only contains each product's base_image and ...
Peach1200's user avatar
0 votes
2 answers
403 views

How to add image in email template?

I am trying to add image in my custom email template. I want to know how to define image section in email template and how to set image PARAMS of email sending action using TransportBuilder. Images ...
Malcom's user avatar
  • 11
0 votes
0 answers
25 views

Magento2 Image Roles does not work sometimes

I am using below codes for the image save. It is working usually, but it doesn't work sometimes, it doesn't select image roles. How can I find the errors? Because Magento2 doesn't give an error. $...
Zalmoxis's user avatar
0 votes
2 answers
146 views

Retrieve Product Image in PDF

I have a custom Magento 2 Invoice PDF template. I manage to get all of the order/invoice info including the product image url but as soon as this is included in the img tag it is not displayed. ...
Chris Oliver's user avatar
0 votes
2 answers
29 views

Widgets- Icons too small

When I try including widgets the product images are barely visible. (Too small) Is there anyway to rectify this?
BLou's user avatar
  • 1
0 votes
1 answer
612 views

Magento 2.4.3: set product image URL from image server

I have a magento 2 website, configuration is as below: - ngnix - php7.4 - mariadb 10.4 - elasticsearch 7.10 - varnish 7.0 - rabbitmq 3.9 OBJECTIVE - I am looking to use products images from my other ...
Amit Dwivedi's user avatar
  • 1,550
1 vote
2 answers
582 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 ...
AP87's user avatar
  • 197
0 votes
1 answer
212 views

How to add roles in images of product with mysql database?

Is it possible insert not update (update is simple) image roles (base, small , thumnail) in catalog_product_entity_varchar table if in the table missing attribute row for the products images
Robinio's user avatar
  • 771
0 votes
1 answer
393 views

How to programmatically add roles to product images?

I need to insert Small, thumbnail and swatch roles to all existing product images, any solution? Thanks
Robinio's user avatar
  • 771
1 vote
4 answers
509 views

Magento 2.3.5 load main product image to preload it

i created a phtml file, called in the catalog_product_view.xml file (inside the head.additional reference block), where i want to preload the main product image, for Core Vitals purpose, for example: &...
Giombattista's user avatar
0 votes
1 answer
25 views

magento product export only includes base, small, and thumbnail images

I'm in the process of migrating our magento 2 store elsewhere, and in doing a product export I noticed that it only includes the base, small, and thumnail images (which are typically all the same ...
gwarnia's user avatar
0 votes
1 answer
403 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 ...
marcel's user avatar
  • 21
0 votes
1 answer
33 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:...
Amjad Khoulani's user avatar
1 vote
0 answers
85 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, ...
Sameer Bhayani's user avatar
0 votes
1 answer
195 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.
Silver's user avatar
  • 119
1 vote
1 answer
129 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. ...
DeniDoman's user avatar
2 votes
4 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/...
Suresh Chikani's user avatar
0 votes
0 answers
564 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/...
C Pramod's user avatar
1 vote
1 answer
269 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 "...
Lou Nik's user avatar
  • 455
0 votes
1 answer
158 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->...
Mujahidh's user avatar
  • 2,813
0 votes
2 answers
193 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 ...
Mujahidh's user avatar
  • 2,813
1 vote
1 answer
346 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 ...
ishaq's user avatar
  • 195
6 votes
3 answers
2k 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 ...
Rejith's user avatar
  • 341
1 vote
1 answer
362 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:...
fearfelt's user avatar
1 vote
0 answers
177 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 ...
fernandus's user avatar
  • 484
0 votes
1 answer
383 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 ...
matthh's user avatar
  • 33
2 votes
3 answers
1k 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?
JGeer's user avatar
  • 1,420
1 vote
0 answers
378 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=".../...
Ibrar Akhtar's user avatar
1 vote
1 answer
1k 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 ...
Ronny's user avatar
  • 433
2 votes
0 answers
26 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?
Jagdricker's user avatar
0 votes
2 answers
2k 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 ...
I.Tobgy's user avatar
  • 25
0 votes
1 answer
286 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 ...
Nick's user avatar
  • 121
0 votes
1 answer
61 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 ...
user2240778's user avatar

1
2 3 4 5
26