Questions tagged [image]

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

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

Magento2: Issue in basket with configurable product image

For configurable product when I add product to the basket, then in mini cart image displayed correct. URL image in checkout looks: pub/static/frontend/vendor/theme/pl_PL/Magento_Catalog/images/...
0
votes
2answers
46 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
1answer
49 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
86 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
0answers
9 views

magento 1.9.4.2 PNG display very bad and pixelatted/bad quality

I've moved my magento 1 site to a new host/server and also upgraded to 1.9.4.2 (from 1.9.2.1) Once i'd completed that I changed my theme too. I have an issue with PNG files not displaying well - they ...
0
votes
1answer
26 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
24 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
6 views

home page image not show in resposnisve mode in magento2

i have home page.On google search the SEO title and image shown.But image is not display on mobile view.what will be the issue for it?
0
votes
0answers
18 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
25 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
121 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
0answers
29 views

Bulk Image Import

As the title says, I've ~5k images to import. What's the best approach? I'm not thinking in using CSV file, so what should I do? I'm thinking in coding a module that iterates through all my products ...
0
votes
1answer
27 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.
0
votes
0answers
20 views

Magento 2.3.1 : Image Validation is not working in back end form

I wants to add width and height validation for image in admin form so please help me.!! Thanks
1
vote
0answers
33 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
11 views

Magento 2 custom image not working in pdf

I am trying to print a custom image in a custom pdf. This runs as a cron. Everytime I run bin/magento cron:run, it displays all the output on the terminal and crashes. Here's my code- $imagePath = '/...
0
votes
0answers
22 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
0answers
22 views

Magento 2: How to fetch swatch_images url in product listing and how to loop them in an array

I am trying to fetch the swatch_image url of product list and pass them through the api. I am even trying to loop those images in an array if in case there are multiple images in the gallery.
0
votes
0answers
27 views

Module to rename the image name produced in Seo Friendly mode

There is a module to rename the image name produced in Seo Friendly mode? Ex: ..cache/test-12332.jpg => ../cache/name-product-bla-bla-bla.jpg
0
votes
1answer
30 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
0answers
21 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
15 views

Magento 2: jQuery: User Get Blank Image In Email

I'm using Magento 2.2.1, I have an issue to fix, I'm using drawpad jQuery but I'm stuck in it, there is a frontend page like this: Here user draw line where he wants to or mark the parts, and submit ...
0
votes
0answers
34 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
17 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....
1
vote
1answer
320 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. ...
0
votes
0answers
20 views

Adding 360 image iframe to carousel in Magento 1.9 - need help to show

I am attempting to add a couple of new elements to a Magento 1.9 image carousel on the products page. Ideally I would like to add at the end of the foreach loop but whatever I do it just keeps ...
2
votes
1answer
108 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
20 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
27 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
20 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
41 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
43 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
2answers
33 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
22 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
vote
1answer
50 views

Wrong media URL in WYSIWYG editor when adding images in various Magento store views

I will try to explain a strange behavior (maybe bug) when using WYSIWYG editor in Magento 1.9. Magento setup One website with three store views. Each store view is on different domains. For this ...
0
votes
1answer
38 views

How to display products images on page sales/order/view? [duplicate]

I'm very new in Magento. I want to display products images on page sales/order/view. How can I do that? Anyone can help? Thank you!
2
votes
1answer
195 views

Avoid loading product image from cache in magento 2

I have issue in product images. Right now products are loading from cache from the path like below. site_url/media/catalog/product/cache/2765542505660baab28ecd555e27366e/t/m/image_name.jpg This ...
0
votes
1answer
43 views

How work with pub/media folder? [closed]

I should get file (image) in magento2/pub/media/vendor_name/.... How can i do this? Thanks
2
votes
3answers
278 views

How can I remove not existing images in magento 2

How can I remove not existing images from magento. In the database have images but file is not exist. I want deleted this images from database.
0
votes
1answer
40 views

How to get small_image in Magento 2

I am trying to get URL of small_image. Magento 2 offers a helper helper('Magento\Catalog\Helper\Image'). I used this code to load small_image <?php echo $this->helper('Magento\Catalog\Helper\...
0
votes
1answer
29 views

How to get url of last image from $this->helper('Magento\Catalog\Helper\Image') Magento 2

I am trying to get URL of image of last image. <?php echo $this->helper('Magento\Catalog\Helper\Image')->init($block->getProductForThumbnail(), 'cart_page_product_thumbnail') -...
7
votes
1answer
140 views

Magento 2.3.1 override view.xsd Using Plugin Not working before 2.3.1 it's Working

I am trying to override view.xsd using Plugin and it's working on magento 2.1.x and 2.2.x but not working in 2.3.1. I Add Same code To describe Here. Extending the complexType named "imageType&...
0
votes
0answers
20 views

Magento 2 catalog:image:resize register error

I'm trying to do image resize on dev site, but it always returns errors due to register. Errors like: /var/www/magento/pub/media/catalog/product/p/h/image.jpg Because name of folder can be /P/h/ ...
0
votes
1answer
101 views

Product Image is not display on frontend Magento 2

I am facing this issue. Product image is not show on product page in magento 2.3.1 My backend is : So Please help me !!!
2
votes
0answers
146 views

Image upload error, unable to upload images in magento 2

Need a solution tried checking uploader.php for file extension MIME type. <?php /** * * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace MGS\...
0
votes
0answers
108 views

Magento 2 REST API copy image from another SKU

I am trying to use an existing image from one SKU and add it to another SKU. For example: SKU0 -> Image uploaded via Admin SKU1 -> Copy image details from SKU0 to SKU1 via API I've tried using ...
0
votes
0answers
34 views

Can't upload image to magento 1.9.4.1

My version magento 1.9.4.1 When i clicked on buttons, nothing happens. Because of this, I can not add a picture to the product I looked at this question and saw that I do not have files skin/...
0
votes
0answers
10 views

Magento 1.9.3 images lost its roles

I was trying to execute this Bulk change image extension to convert all my images to webp But after that all products images lost their roles. I have to many products. Is there a way to restore ...
0
votes
0answers
15 views

Show Block class image upload to Ui form image upload

How can i change from this To this My Code to create image upload is below. I don't want to create the form with UI component but i want to make the image upload like it. $fieldset->addField(...
1
vote
1answer
29 views

how to solve configurable product image adapter error in magento 2.2.6

I'm getting error in magento2.2.6 on frontend for configuration type product Exception #0 (InvalidArgumentException): Image adapter for 'SLGD2NEW' is not setup. also command not working bin/...