Questions tagged [product-images]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
33 views

Not able to get product image

How to get product image in "default.phtml" file ? Magento2/vendor/magento/module-sales/view/frontend/templates/email/items/shipment/default.phtml I am getting the shipped product object in ...
0
votes
1answer
21 views

Product Images not showing - Magento 2

I am experiencing a strange issue with Magento 2 when creating new products where the product images shows fine in the backend, it also shows on the frontend category catalog but on the actual product ...
0
votes
1answer
20 views

Image resize issue

I am uploading below image for the product via backend. But it changes to below image It is clearly visible that it changes the color. I have tried using ImageMagik also. I have even tried this ...
0
votes
0answers
12 views

Magento 2.3.3 Customer order view page break after product delete from system

I placed order and after that same product i had delete after that. When click on view order link from customer order page , below error displayed. Fatal error: Uncaught TypeError: Argument 1 passed ...
0
votes
0answers
17 views

How to get image url in magento 2 on checkout page

How to get image url in magento 2 on checkout page custom phtml file. I created the custom phtml. I need to get the product image in that phtml file
0
votes
0answers
9 views

How to Get Gallery Resized Gallery Images in Product list

<?php $i = 1; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->create('Magento\Catalog\Model\Product')->load($_product->getId()); $images = $...
0
votes
0answers
8 views

Product image files being added more than once (_1, _2, _3, etc.)

So this is odd. I've noticed this since 2.3.x (I'm now on 2.4.1) but it is getting annoying and I'm wondering if anyone knows why it does this (and hopefully a fix? Or how to stop it from doing this). ...
2
votes
0answers
21 views

Resize different images to square without white space

I am trying to force all the images in the product grid to square. The database serves images from ultra wide to ultra high ratios. i'm trying the following: $productImage = $imagehelper->init($...
0
votes
0answers
10 views

Magento 2 Commerce Edition custom theme product image not showing on home page

The product image showing on Both PLP & PDP page, when i try to add on home page by using widget is not visible, the name and price showing but image missing, I am creating custom theme from blank ...
0
votes
0answers
12 views

How can i add a function to scroll product images in the catalog search list page?

so... i have been trying to solve this situation for a few days now... In theory, it should not be difficult to solve... But i cant find the right way to do it... If i search for a product... i am ...
0
votes
0answers
14 views

How to set image for product on catalog_product_save_after event in magento 2?

I am able to set quantity after product save but not able to figure out how to set a product image on catalog_product_save_after event. Any help
1
vote
2answers
78 views

Magento 2 how to override theme-adminhtml-backend view.xml in custom module?

By default Magento 2 creates more than 20 duplicates of each product image..! (why???) I have got this down to 5 using view.xml in my theme, but there is one extra set of image sizes I need to change, ...
0
votes
0answers
12 views

view.xml Fotorama gallery thumbnail sizes @2x?

I just want to increase the size of the gallery thumbnail images, but then set their display size smaller via css to achieve high resolution display. (The default display is 1x which is noticeably ...
0
votes
0answers
19 views

Magento 2 set product image role programmatically

Hello and this is my code: $imgURL = 'path/to/my/image.png'; $fileSystem = $objectManager->create('\Magento\Framework\Filesystem'); $mediaPath = $fileSystem->getDirectoryRead(\Magento\Framework\...
0
votes
1answer
34 views

reindex command generates error: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel()

When I run reindex command bin/magento index:reindex catalog_data_exporter_categories I get the following error on console. Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() ...
0
votes
2answers
21 views

Magento2 - How to get Image Size?

For Image optimisation, I want't to get Product Image Size. (Either in KB or MB etc.) Ex: 6 KB, 6KB,5KB etc. I am using following code on root path. <?php error_reporting(1); ini_set('...
0
votes
1answer
16 views

How does magento product image caching works?

I uploaded some images to my products and they were visible fine on frontend. I then went and deleted those images from pub/media/catalog/product folder and also deleted pub/media/catalog/product/...
0
votes
0answers
12 views

Placeholder Image not showing in frontend

I was using cdn for media intially but then later replaced it to pub/media/. I dont have any product images with me, hence I uploaded placeholder images from admin. The products still load from pub/...
3
votes
1answer
47 views

Magento 2 : Custom API code to upload multiple product images programmatically

I am making custom Magento API to create products. I can make products using custom API. Now my requirements is to upload multiple images to that API. Can anyone helps me for reference code to upload ...
0
votes
1answer
29 views

Data migration issue : SQLSTATE[23000]: Integrity constraint violation from maento 1.9 to magento 2.4.1

I am migrating the data from Magento 1 to magento 2.4.1 by running the following command php bin/magento migrate:data --reset vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.0.1/...
0
votes
1answer
22 views

How to migrate product images before using Data Migaration tool from magento 1 to magento 2

I wish to migrate data from magento 1 to magento 2 using data migration tool. I know the procedure for migration using data migration tool. But i am having doubt on, how to migrate the product images &...
0
votes
0answers
18 views

Magento 1.9 - Getting exception while uploading product images

When I'm trying to upload product images in backend and save, getting below exception in debug file - 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column ...
0
votes
0answers
44 views

Magento 2- Why for some products only one image roles are showing?

I'm using Magento 2.1.11, We noticed that for some SKUs only one image role is showing i.e. base image (Attaching screenshot below) other image roles are not showing. I tried setting them ...
1
vote
1answer
44 views

Magento 2 - get cache url of media gallery images of product

This is my code for get cache url of images: $images = $_product->getMediaGalleryImages(); foreach($images as $child){ echo '"'.$child->getUrl().'"'; } Result expected: ...
0
votes
0answers
21 views

create custom product image attribute in magento 2

I have to add the custom image attribute in product attribute. I referred this link: create product image attribute in magento2. but image saved in my temp directory after saving the image how can we ...
0
votes
0answers
21 views

Magento 2 Product Page Gallery Image Preview showing same image

Im facing a serious issue with Magento 2.36 product view image gallery. The Preview thumbnail images are showing same if there are multiple images. The issue seems to be a conflict with Algolia ...
0
votes
0answers
22 views

Image color shift after uploading to Magento admin

When I upload any product image, that images change his saturation and color This is the original image: This is the image post uploaded: I'd searched on Google about this error, and the most ...
0
votes
0answers
16 views

Magento 1.14 Image upload from admin panel throwing 404

I am working with the Magento EE 1.14 site, recently I've installed the patch(11295), after installed it, I am facing issue while upload the product image from back-end. I've reviewed the code changes ...
0
votes
0answers
5 views

Magento 2.3.6 - How to Bulk change existing & new Product image file name for SEO

How can I change the filename of existing & new product images as per SEO instead of just sku type names. I noticed some similar threads here, but those are for Magento 1. Can anyone pl help me ...
0
votes
0answers
15 views

Watermark issue

Currently we are running on Magento 2.2.6. We have added a watermark for the base, thumbnail, swatch & small. The watermark is appearing on the productlist page, but not in a good manner, see ...
0
votes
1answer
18 views

Magento Command for bulk Optimizing existing Product images

How to optimize existing Product images via commandline, similar to resize command. php bin/magento catalog:images:resize https://docs.magento.com/user-guide/catalog/product-image-resizing.html This ...
0
votes
1answer
21 views

Importing images with special characters in path

I am trying to import a lot of images. Images for each product are placed in subfolders by product IDs and locale. The problem is that each locale specific folder name starts with a caret (^). Example ...
0
votes
0answers
34 views

Magento 2.3.2 does not show Thumbnail in other store views (language)

I'm using Magento 2.3.2 with 3 store views for languages and Porto Smartwave Theme. All Products are created as Simple Product for "All Store Views", the Thumbnails have roles assigned, but ...
0
votes
0answers
25 views

Exporting all images

How do I export all of my store images for download? This is a very old site (V1.9.2.1) which a client wants me to shut down but we need those images. Thanks so much.
0
votes
1answer
21 views

Bulk delete product images from a single category

I had a csv upload issue, and now one category of products has 4 of the same image. How can I bulk delete images form these 1000 products? Thanks
0
votes
0answers
17 views

How to increase the quality of product images JPG Magento 2.3.4?

I'm using Magento 2.3.4. my uploaded product images quantity is very low because of compression. My product images size in 30 to 40 kbs, can someone help me increase images quantity?
0
votes
0answers
6 views

Get Image URLs (and prices) of product attributes (color)

I need the images for all color options of a product (and also prices in case they are different in different color options). I figured out how to get the color options of a product: $colorAttribute = ...
0
votes
0answers
23 views

Programmatically importing images fails, but the csv file imports fine from admin in Magento 2

I'm trying to upload the following CSV file of images programmatically but it's failing to import. The weird thing is that it works from admin sku,base_image,base_image_label,small_image,...
1
vote
1answer
17 views

Change product image size for virtual products only

Is it possible to change the product image size for virtual products only? I'm aware of the view.xml file to change image resolution, but it changes the product image size for all product types. Maybe ...
0
votes
1answer
26 views

Import all Products from magento 1.9 to magento 1.9

I am using magento 1.9.4 . I want to import all Product data from another magento 1.9 store. i tried via .csv file but it did not worked. How can i transfer product from one store to another with all ...
0
votes
1answer
17 views

Magento 2 Image Gallery pure SQL Manipulation

I've written an interface for Magento 2 admin that allows creation and editing of key product attributes from a phone. Once a product is created and it's images attached to the product, I have been ...
2
votes
1answer
30 views

Magento 2 : Image is not showing on product detail page after few seconds

Product image is not showing after few seconds on product detail page. When page loads it showing the image but after few seconds it's vanishing. Please provide any solution you have. Thanks in ...
0
votes
0answers
20 views

How to change onClick to onmouseover in product detail page in magento2.3?

Inside of clicking each thumbnails to view main page. I want the main image to be selected and displayed onmouse over.
0
votes
2answers
81 views

Failed to Load Resource. Server Responded with a 404 on certain Products Images showing NULL!

I found this problem on our production site. Where any Config products that have a picture assigned to the config product with out of stock options return the image null when looking at the Product ...
1
vote
0answers
66 views

Product view page: Error on Display Product Images per Selected color

Beginner on Magento 2, i'm creating a Product view Page, and i'm having Problems to DISPLAY the Product Images, i just want to Display the images of the SELECTED COLOR, but it ONLY SHOWS the ...
0
votes
1answer
24 views

Magento 2 Products Base Image Missing on Frontend after Import

We've been having an issue with importing images via CSV spreadsheet into Magento 2. I'm able to import product images into the Magento admin via the columns Base Image, Small Image, Thumbnail and ...
1
vote
2answers
31 views

Product images not showing

I'm experiencing a strange behaviour: all the product images are present if I edit a product on the backend. But if I visit the product list in the backend or frontend, or the product view in frontend,...
2
votes
0answers
25 views

Assign Image Role to Multiple Products Images

I have added image role by using this code namespace Vendor\Module\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\InstallDataInterface; use ...
0
votes
1answer
45 views

Change the default product image import directory

Dears, In magento 2.3.5, in order to add images within the product import csv, the images should be in: var/import/images While in the pass, the path was: pub/media/images My question is, is there ...

1
2 3 4 5
25