Questions tagged [product-images]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 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
16 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
0 votes
0 answers
87 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
  • 183
0 votes
1 answer
45 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
  • 121
0 votes
0 answers
22 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
45 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
67 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
31 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
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....
M M's user avatar
  • 1
0 votes
0 answers
19 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
43 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
135 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
279 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
  • 21
0 votes
0 answers
26 views

How to add product specification information in admin product view page?

I am trying to add product specification section in admin product view page. This section has to include three images upload function that display its specification, and then title input field, ...
Malcom's user avatar
  • 21
0 votes
0 answers
23 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
100 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
0 answers
28 views

How to change product view image design layout for a specific category only?

I want to only on specific category product view image design and layout change but another category product image view design and layout has been the same.
Deepak Sah's user avatar
0 votes
0 answers
60 views

Placeholder image showing on the front end. Magento 1.9 - Happy to pay to be fixed

I have had a Magento 1.9.1 site since 2015. All has worked fine. I moved hosting companies and now a year later when I have gone to upload more products the images do not appear on the front end. All ...
Ben's user avatar
  • 1
0 votes
0 answers
36 views

How to save hide image programmatically in magento 2 admin product edit?

I want to set & save the hidden product image( Hide from Product Page ) programmatically in Magento 2 in admin panel? I tried this way $product = $this->productLoader->create()->load($...
Mujahidh's user avatar
  • 2,791
0 votes
0 answers
22 views

Where the product admin images processed in magento 2?

In Magento 2, if you go to Products->Catalog->Edit->Images and Videos you can add images to the product. The uploader will upload a temp image immediately.When click on save image will save ...
Mujahidh's user avatar
  • 2,791
0 votes
0 answers
30 views

How to add a temporary image uploaded from external url to product image data set and view in image section in magento 2 admin product edit page?

I want to add custom image temporary path to existing product images data and load in the edit product page. I have override the product-gallery.js and gallery.phtml file from module-catalog in my ...
Mujahidh's user avatar
  • 2,791
0 votes
1 answer
473 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,540
0 votes
0 answers
33 views

How to get images if no roles exist on images, but images is exist ? Magento 2

i am trying to get the images but if the image has no role then can't return, is it possible to get the image if it has no roles
Robinio's user avatar
  • 771
1 vote
2 answers
424 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
  • 195
0 votes
1 answer
182 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
274 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
345 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
23 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
378 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
27 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
74 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
172 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
69 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
517 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
236 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
  • 433
0 votes
1 answer
137 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,791
0 votes
2 answers
152 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,791
1 vote
1 answer
288 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
  • 183
5 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
  • 311
1 vote
1 answer
308 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
173 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
339 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
881 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,416
1 vote
0 answers
331 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

1
2 3 4 5
26