Questions tagged [image]

Denotes questions about image processing, importing, upload and management.

Filter by
Sorted by
Tagged with
0
votes
1answer
80 views

Magento 2 dynamically add image to email template

I am creating a custom module, In my requirement, I've to add a custom image a, the image available under the Namespace/Moduelname/view/frontent/web/images/image.jpg. The below code I've added image, ...
0
votes
1answer
150 views

Remove main product image from gallery (and placeholder)

Steps: I have a configurable product with main image for thumbnail and everything else. I create a variation with it's own image. I select hidden in product page in the main product's image. ...
0
votes
1answer
23 views

I get an error when I indicate the path to the Symlink 1.9

I am using the module Image Optimizer and I need to specify the media folder to optimize the pictures. But I don’t have a media folder for the project, there is only a Symlink to the directory /mnt/...
0
votes
2answers
154 views

How to resize webp image programmatically in Magento 2?

I can safely resize an image with jpg or png format like this : public function __construct( \Magento\Framework\Filesystem $filesystem, \Magento\Store\Model\StoreManagerInterface $...
1
vote
2answers
29 views

Changing icon on CMS homepage

I am new to Magento. I am trying to make changes in CMS homepage. The page looks like this: I am able to change page title and heading from cms_page table. But not able to find way to change the ...
0
votes
2answers
34 views

General image processing model

Is there a general class that deals with image processing (mainly resizing) that just receives a path to an image, some parameters and processes and saves the image somewhere and returns the new path? ...
0
votes
1answer
45 views

Magento2 how to stop generating Cache for Images?

I don't want Magento to generate cache for images. How can I restrict cache generation for images?
0
votes
0answers
18 views

Image compression Magento 2

What I have found is that compressing before uploading is relevant to the compression in Magento For example I have found if I compress to 60 and have 80 in magento nothing happens. My process now is ...
0
votes
0answers
27 views

Magento2 How to upload cache images to Amazon s3 server while importing product from beckend

i have upload images to amazon s3 server and it is uploaded images to amazon s3 server while importing products. but i am not able to view images in product view page , and i have check cache folder ...
0
votes
1answer
29 views

Magento2 How to resize product images by product id without using resize command

Does any one know how we can resize product image by product id ? i do not want to use resize command,becuase it takes much time
0
votes
1answer
60 views

external images link magento 2.2

I'm trying to show images from external images in catalog search results I created a text attribute containing the full path URL named custom_image for each product This phtml is responsible to ...
1
vote
0answers
55 views

Second product image on category page

I'm trying to display second image of a product in a category page on hover. I managed to get images by $_product->getMediaGalleryImages() but I have problems with resizing them to ...
0
votes
0answers
17 views

Images invisible on catalog page upon resizing images in view.xml

I have changed the size of image in view.xml as <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <view ...
0
votes
0answers
35 views

Magento 2 site does not load gif images

I have a testimonials page, where my customer has added a .gif image. The image is not getting loaded on the frontend , hence alternate image text getting displayed. This is the code <img src="../....
0
votes
0answers
23 views

check unused product images

How to check unused product images? I have used this query but it also remove the used images. query="SELECT value FROM catalog_product_entity_media_gallery; What is not from the results of this ...
0
votes
0answers
24 views

how to retrieve the image information from the magento 2 store in python

client.get_product('SKU ') in python is used to retrieve product info from the magneto 2 store but how to retrieve image information related to specified product using python.
0
votes
2answers
109 views

Magento2 - Change my account label to image

I tried to change the my account link to a image but then found that it was called in xml in vendor/magento/module-customer/view/frontend/layout/default.xml as label . So how could I change it to ...
0
votes
0answers
15 views

Magento 1.9 - Newsletter images not showing to Gmail customer other email services showing my images

Gmail customer not able to see my newsletter images, but perfectly working with other mail services like yahoo, rediff, domain mail account.
2
votes
1answer
85 views

Help! image appearing twice on product page

we have had our website developed with an offshore team located in India and it to see I would be putting it lightly if I said it has been frustrating. I have no idea about coding and pretty much ...
1
vote
1answer
37 views

Magento 2 - Dynamic Product Image Magnifier

I want to add magnifier with settings of top position,left position ,width and height to setup and show magnifier accordingly to settings when hovered on image.
0
votes
1answer
226 views

Magento 2 - can't upload images in CMS (File validation failed.)

I try to upload a small (900 KB) .jpg image to my CMS Site, but I get File validation failed. I made sure that I have all necessary permissions as stated in the magento documentation. find . -type f ...
0
votes
1answer
37 views

Magento 1.9 : How to get Image on Product page -> 2columns-left.phtml?

I want to display my below image on product page left side, https://i.stack.imgur.com/OEZDN.jpg I just added directly into 2columns-left.phtml, <div class="col-left sidebar col-xs-12 col-sm-3"&...
0
votes
2answers
213 views

image path for a phtml file

Hello I would like to add a image to a phtml file. however it didn't get use to the magento code to get the image path <img src="{{media url='/ca_flag.png'}}"/> Somehow the image address was ...
0
votes
1answer
117 views

Magento 2 error module image optimizer

I installed the Image Optimizer for Magento 2 I'm having trouble getting a scan on pub/media, follow the errors attached. The error message is "Something went wrong while scan image. Please review ...
1
vote
1answer
12 views

How do I add images to custom theme

I need to add an extra, static image in the page header. Right after the logo. My child theme directory structure in [magento project root]/app/design/frontend/My_Vendor/My_Theme/ ├── ...
1
vote
1answer
69 views

Magento2 System configruation

I upgraded my magento2.2.8 to 2.2.3 after that I open system configuration and try to open configuration but some configuration shows a blank page and some option showing normal.
0
votes
2answers
306 views

Create a section in the admin panel to upload pictures and get a picture in the template

I have a place on each side where I need to get the loaded picture by the user from the admin panel. The admin panel has similar functionality and I want to copy it and display this image in the ...
1
vote
2answers
544 views

Magento 2.3.3 can't resize images

I have upgraded my Magento from 2.2.7 to 2.3.3. After I upgrade it, I can't run command line: php -dmemory_limit=2G bin/magento catalog:images:resize It always shows bug: libpng warning: Interlace ...
0
votes
3answers
494 views

Unable to get Product custom image role in magento 2

i have created new image role name "tiles_images", i product listing page i want to show tile_image only , for this i have done below code but that seems not working i am using below code in my ...
0
votes
1answer
99 views

Concatenate static Image path with KnockoutJS data-bind

This is my JS File code define([ 'uiComponent' ], function (Component) { 'use strict'; var some_products = window.checkoutConfig.my_specificProducts; return Component.extend({ ...
0
votes
0answers
54 views

Images not loading on mobile view

I am using magento 2.3.2. My product images are not loading on mobile. Please help.It a critical issue. Its just shows infinite loading and then hang ups. This happens on product view page.
0
votes
0answers
24 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
72 views

Magento 2 category image 404 with store code in url

I have a phtml file in my theme that is added to category page via XML updates tab. I read image in phtml like so: $this->getUrl('media/catalog/category/').$_category->getImageUrl() My theme ...
0
votes
1answer
1k views

Convert Base64 to Image file and save file directory : Magento 2

How to convert base 64 image format to image file and save image in local file directory in magento 2 public function setProfileImage($customerId, $base64) { if ($customerId)...
0
votes
1answer
34 views

PNG image modified after image uploads in Magento 2

I have Uploaded .PNG image for the product. But it displaying differently on the frontend. most of the image automatically become transparent. please check the attached image.
1
vote
0answers
41 views

Magento 2: Upload image without Ui component

how can I upload an image by this way, please help me, thank you $fieldset->addField( 'image_field_name', 'image', [ 'name' => 'image_field_name',...
0
votes
0answers
31 views

how to optimize storage problem in magento 2

magento ver 2.2.6 i have 2,000 products but storage 16GB (pub/media folder 14GB) how i can optimize this storage problem..
0
votes
1answer
122 views

Magento 2 Change base image when attribute is selected on catalog page

I want to change the base image depending on the color which is selected. So if i select "Olive Green", all the products with olive color single products must change the base images to the black ...
1
vote
1answer
139 views

Magento 1.9 Product Image Upload Console Error

Console Error : Failed to load resource: the server responded with a status of 403 (Forbidden) VM262:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse ()...
0
votes
0answers
105 views

How to upload image by REST api (without base64) magento 1.9

I try to upload an image by rest API in Magento 1.9 version but getting "invalid content-type' error. Can any one help me for the same?
0
votes
1answer
45 views

compare images from catalog_product_entity_media_gallery with actual presence on server

So, In our catalog_product_entity_media_gallery table in the Magento 2.3.1. database are around 25.000 lines. Like: 18963,90,/_/_/__1_3.jpg,image,0 18965,90,/_/_/__1_4.jpg,image,0 10815,90,/_/_/__1....
2
votes
1answer
1k views

Magento 2.3 wrong image cache generation

I have upgraded my Magento EE store from 2.2.7 to 2.3.2. An issue occurred of images not showing on product pages. I debugged a bit and ran the command "catalog:image:resize" and images appeared. ...
2
votes
1answer
162 views

Product Images fail to load after Version upgrade magento 2.2.9

I tried to upgrade version 2.2.1 to 2.2.9 and for some reason images inside the product catalog on the frontend load forever. I did research and tried all the below solutions https://www.ctidigital....
0
votes
0answers
61 views

Cron job image import issue - Magento 2.3

In Magento 2.3, I am importing data from the .xml file. The product name, SKU and product description i can import via cron job but I cannot import the product image. Can you help me? Thanks in ...
1
vote
1answer
32 views

Programatically Product Save with Image

This is My File Uploader in .phtml file : <input type="file" id="imageUploader" name="imageUploader"> This my PHP file code where form post. <?php namespace VendorName\ExtensionName\...
0
votes
1answer
42 views

Consistent URL issue on magento1.9 site optimization

Getting issue in Website Optimization: Serve resources from a consistent URL All url are of small image of different products on the same page. https://www.text-machines.com/media/catalog/product/...
2
votes
1answer
83 views

Magento2: Production Critical Error on Cloudinary

I am trying to run the setup:upgrade command I get the following error PHP Fatal error: Uncaught Error: Call to a member function getCloud() on null in /var/www/asprod/vendor/cloudinary/...
2
votes
1answer
74 views

How get Image Url by product_id or other way

I am rendering sales_items rows in frontend Screenshot is: Can anyone please help me to find how get image path here from product id or any other solution. and set path in src tag ? My .phtml file ...
0
votes
3answers
166 views

Magento 2 Related Product Image is not Accurate

In Related Product Slider, All Images are of different size and default Magento is not resizing them. Screenshot : https://prnt.sc/oax7yl I want to show all images of the same size. In view.xml, I ...
1
vote
0answers
47 views

the number of images in Magento store

How many images I can upload for one product in my Magento store? I want to know the maximum number of images per one item. It's really important for my clothes store

1
2
3 4 5
17