Questions tagged [product-images]
Denotes questions related to product images configuration, management and modifications.
1,261
questions
0
votes
0
answers
12
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 ...
0
votes
0
answers
54
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.
...
0
votes
1
answer
37
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/...
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 ...
0
votes
0
answers
18
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 ...
0
votes
1
answer
38
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?
0
votes
0
answers
11
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
...
0
votes
1
answer
39
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 ...
0
votes
1
answer
26
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\...
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....
0
votes
0
answers
15
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 ...
0
votes
0
answers
38
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?
0
votes
1
answer
71
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 ...
0
votes
2
answers
200
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 ...
0
votes
0
answers
20
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, ...
0
votes
0
answers
18
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.
$...
0
votes
2
answers
60
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.
...
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?
0
votes
0
answers
22
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.
0
votes
0
answers
54
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 ...
0
votes
0
answers
35
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($...
0
votes
0
answers
20
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 ...
0
votes
0
answers
15
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 ...
0
votes
1
answer
374
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 ...
0
votes
0
answers
23
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
1
vote
2
answers
308
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 ...
0
votes
1
answer
151
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
0
votes
2
answers
168
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
0
votes
4
answers
248
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:
&...
0
votes
1
answer
17
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 ...
0
votes
0
answers
71
views
how i add itemprop="image" on product large image?
how i add itemprop="image" on product large image?
0
votes
1
answer
335
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 ...
0
votes
1
answer
24
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
0
answers
94
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.
1
vote
0
answers
69
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
156
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.
0
votes
1
answer
52
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. ...
1
vote
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/...
0
votes
0
answers
495
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
210
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 "...
0
votes
1
answer
116
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->...
0
votes
2
answers
121
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 ...
1
vote
1
answer
259
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 ...
4
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 ...
0
votes
1
answer
274
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
154
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 ...
0
votes
1
answer
287
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 ...
1
vote
3
answers
798
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
vote
0
answers
308
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
961
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 ...