Questions tagged [product-images]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Magento 2.3 color swatches with related products & upsell products?

I have added color swatches with related products using this code: <?php if($_item->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE){ $...
2
votes
2answers
639 views

Magento 2 : How to make product image zoom on mouse over

I want to zoom product gallery image on mouse over in magento 2. How to do that. Thanks.
0
votes
1answer
23 views

Magento 2 : Import product with external image URL

I have a CSV file with image field is external image URL, how can I import it, hope anyone help me.
1
vote
0answers
14 views

How to change product image on swatch selection on related product on product view page in Magento 2?

I have color swatches on related products list on product page. I want to change product image on the basis of swatch selection on view page. How can I change image?
0
votes
0answers
11 views

Magento Not Upload Product Image

I try to upload the product image but it give error {"error":"$_FILES array is empty","errorcode":666}
1
vote
1answer
32 views

Magento2.3.1 IN porto theme product image on detail page not loading

In magneto2.3.1 - I have used porto theme I notice some images not generated cache inside, I apply all commands on my live site, but not getting any error and also I apply image resize command php bin/...
2
votes
2answers
592 views

magento 2 Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string

In custom theme And category page show this error- Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string, null given, ...
1
vote
3answers
1k views

Importing produtcs with images from .csv file error

When I try to import a .csv file with products and images I got this error: Imported resource (image) could not be downloaded from external resource due to timeout or access permissions In the .csv ...
0
votes
0answers
65 views

Imags are not displaying on product-listing and product detail pages

I have exported and imported products in magento2.3.0 but images are not displaying on storefront. When i check the source-code in image path is loading but dont know why its not displaying. Working: ...
0
votes
1answer
606 views

Magento 2: is there any way to assign product image from remote image url programmatically?

I just want to assign product image from remote image url. One more thing is i can't able to download image in my server because total size of image is : over 1TB my code is below : $imageUrl = '...
5
votes
1answer
915 views

Magento 2 : Display grouped product pictures in template

I am trying to display the grouped product images on my product page. So I extended the grouped.phtml file in my theme and modified it as follow: <?php /** * Copyright © 2016 Magento. All rights ...
0
votes
0answers
16 views

Magento 2 Image issues

I've been having an issue with getting the product images to load properly. I migrated the site from M1 to M2 and brought over all of the media files per the recommended methods. Some of the product ...
0
votes
1answer
20 views

Magento2 How to make Thumbnail zoom on click on product page?

Magento2 How to make Thumbnail zoom on click on product page?
8
votes
2answers
1k views

Magento 2 is there a faster way to change product media gallery entries programmatically

I need to do a massive update of product data but what I need to do can't be achieved with product import. In example I need to update media gallery and categories for given products, but the solution ...
0
votes
1answer
1k views

How to add image roles programmatically in products Magento 2?

I am creating products programmatically. I am using below code to add product image.. Images are adding perfectly fine.. but image roles are not showing. Can anyone please help me to add image roles ...
0
votes
1answer
950 views

Media main image not changes with swatches magento 2.0.2

I have facing some issues with configurable product. when i click on swatches main image not changed. my magento is 2.0.2. can you please help to resolve the issue. thanks
0
votes
1answer
806 views

How to remove / rebuild product cache image with the help of product id?

I want to remove the particular product image from cache folder at the time of product edit from admin. I need to change the product image when product getting edit and its working fine. Now at that ...
15
votes
5answers
36k views

How to get product image and URL in Magento 2?

This is my observer: public function execute(\Magento\Framework\Event\Observer $observer) { $orderIds = $observer->getEvent()->getOrderIds(); $order = $this->...
0
votes
1answer
615 views

images not imported through csv in magento 1.9

I tried to import products through import/export, everything gets imported but not image. What I did was: Flushed cache and re-index Media folder provided permissions to 777 Place all images in var/...
0
votes
1answer
920 views

images loading too slow on product page

i am using the porto theme and images are loading slow even when they are small in size and the server is very fast. it happens in the product page.. what's the cause of this? is that related to the ...
0
votes
1answer
843 views

Magento 2: upgrade to 2.1.6 resulted product images not working

I upgraded Magento 2.1.5 to 2.1.6 and after upgrade the product images in frontend's product list pages stopped working. Inspect says the following for all the products: GET /pub/media/catalog/...
0
votes
0answers
14 views

Magento 2: Difference between flush catalog images cache and manually deleting files

Is there a difference between using the Flush Catalog Images Cache button in admin and removing the files in pub/media/catalog/product/cache via command line?
1
vote
2answers
623 views

Importing product images from URL problem

I'm trying to import some products from a csv with images that are stored on an external server. The images are saving to the var/import folder ok but they won't assign to the product. I'm using the ...
0
votes
1answer
38 views

Product image size issue - Fotorama - Magento EE 2.2.4

I have issue in image height calculation in fotorama in Magento EE 2.2.4. The image div(fotorama__stage)height is assigning by Script as inline css. It is happens in some products only. <div ...
3
votes
1answer
1k views

$_FILES array is empty while uploading product image in Magento 1.7 admin

I am getting error $_FILES array is empty while trying to upload an product image in magento 1.7 backend. 2 days ago I installed patches from 5344 to 8788. How can I rid off this problem. please ...
2
votes
1answer
66 views

How to show all product thumbnails as a grid (no carousel/ribbon) in product page on Magento 2?

I've been searching for an answer for a while but maybe I'm not searching correctly... We're upgrading to Magento 2 (2.3.2 to be exact) and we're modifying our theme based on Luma. The product page ...
2
votes
1answer
45 views

Magento 2 : How to set images to product from a custom folder (Not to use pub/media folder) programmatically

There is a custom folder "productimages" in root path "localhost/magento/productimages". In this folder "productimages", there are lots of images. I want to save that images in products using object ...
0
votes
2answers
1k views

Product image not showing in Magento

I have a specific product and its image is not shown in the front-end. In the admin panel in Catalog->Manage Products->Images I can see all the images of its configurable product. So I don't ...
0
votes
2answers
22 views

Create new VPS save images and file download on magento

My sites very large size with image and file upload. So, I would like to setup as CDN from another my server2 VPS from current server1 VPS. That server will be storage images and files upload. I ...
5
votes
1answer
552 views

Some very few images are rendered with inverted colors by Magento

We have the problem, that one image in the catalog is shown negatively in Magento below the gallery. I tried to reproduce with n98-magerun2 dev:console $i = $di->create('\Magento\Framework\Image',...
2
votes
1answer
50 views

Apply configurable product images to ours associated simple products Magento 1.9.x

I need to apply configurable product images to our simple product associated because I need to use simple products in another store where it will only show simple products and not show configurable ...
0
votes
0answers
26 views

Speed up image resize after upgrade

We have more than 10000 SKU's and we are upgrading to 2.3.2 So in order to display product images, I need to run catalog:images: resize witch takes 8 hours to complete. Is there a way to speed up ...
1
vote
1answer
32 views

Error in Uploading Image using REST API in Magento 2

I am getting below error while hit REST API from postman: "message": "The product can't be saved.", I have used below details for API: URL: magento.localhost/rest/V1/products/p1/media ...
1
vote
0answers
89 views

magento 1.5.0.1 upload image button doesn't display

I am using magento 1.5.0.1 My problem is i want to upload an image,but upload image and browse image buttons are not displaying.
4
votes
1answer
1k views

How to show image in grouped product

For grouped products, I would like to see the picture of the by-products. I tried several things but without success: in files : Magento_GroupedProduct\templates\product\view\type In the loop of ...
0
votes
0answers
34 views

Create image gallery programmatically

I need generate image gallery programmatically. I have near 1M products and product images import is too slowly. I created controller, which return image if it exists and generate images if it not ...
19
votes
4answers
20k views

Regenerate catalog cache images issues

I'm doing migration process from Magento 1.9.2.4 to Magento 2.1.6, after migration completed, I move media folder of M1 to pub/media M2. Now the problem is some of the images doesn't generate in ...
0
votes
3answers
84 views

Magento 2.3.2 wrong image cache path

Magento 2.3.2 upgrade after 2.2.6 having issue on product page. Images aren't appearing on product pages. The path coming is 404 /catalog/product/cache/50dd8aa5084eb9449e88d424223230cd/image/...
2
votes
1answer
1k views

Magento 1.9 : How to get Image label under the main image?

How can I get image "label" to print/output under the main image?? Need to display the Image label change according to the selection of the thumbnail image. (e.g Front, Rear, Side etc)
4
votes
1answer
1k views

Magento2.3.1: Images not displaying

Images are not displaying in magento2.3.1. https://www.depoto.com/test-product.html I gave the permissions for media folder 777 already. We are not using any extension which relates to the product ...
0
votes
2answers
455 views

Magento Compress Product Images

Is there any extension, that can compress the images while uploading as the product image. I have written codes that is used to add products from front end and also using CSV. The users have option ...
1
vote
1answer
680 views

How to connect AWS S3 bucket images to my website

I have installed the extension https://github.com/thaiphan/magento2-s3/ for connect to S3 bucket. When I proceed to sync button then images not uploaded proper format on AWS S3. Please check the ...
2
votes
1answer
53 views

Magento 1.9 Mysql Query to pull out data

I am kind of stuck getting data from magento 1.9. The solution i needed is mysql query so that I can collect all data in one table. The values in table i needed from different table are product id, ...
0
votes
3answers
529 views

Magento 2.3.2 Product Image Missing after version updating from 2.2.1

I have updated the Magento version to 2.3.2. After updating the Magento, the product images are not visible. The product catalog images are coming from the old cache file directory. I have done the ...
4
votes
1answer
1k views

How to delete product images using magento csv import in magento 2?

Magento Version: 2.1.0 We have added the wrong image for some of the products when importing through Magento CSV import. we want to remove the images from those products and add new images or replace ...
1
vote
1answer
33 views

Product Images are not showing

Product Images are not showing after upgrade from Magento 2.2.5 to 2.3.1, instead, page keeps loading but nothing happens. I am using porto theme
2
votes
1answer
2k views

Magento 2 - Why is product image size & dimensions changed after upload?

When uploading new images to a product in Magento 2, it is not only decreasing the dimensions of the image, but it's increasing the image file size: Image Details Before Upload Dimensions: 1185 × ...
6
votes
2answers
2k views

How can I remove the white borders from images? Magento 2.1

All my images appear like this. <image id="category_page_grid" type="small_image"> <width>240</width> <height>300</height> </image> <image id="...
3
votes
1answer
272 views

Product image disappears on product page when using a custom page layout

I'm creating a custom theme on Magento 2.1. I create a custom layout for the product page in app/design/frontend/<theme_name>/base/Magento_Catalog/layout/catalog_product_view.xml, here it is: &...
18
votes
4answers
10k views

How to increase the quality of product photos JPG (Magento 2)

The JPG compression on Magento 2 is very strong, so that the quality of product images get really bad in Catalog and Product view. How can I change the Image compression for JPG's in Magento 2?