Questions tagged [image]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
24 views

how to display images stored in pub/media folder

hello everyone I want to display an image from the folder "pub/media" and concatinate it with my path from the image field from database but I can't display it in detail page with the ways ...
0
votes
1answer
14 views

multiple image in array in input field custom form in magento 2.4

Now i am using input field file[] array so how to $filesData = $this->getRequest()->getFiles('files'); use foreach loop <input type="file" name="file[]" id="file"...
0
votes
1answer
24 views

how to upload image in custom from in magento 2.4

How to upload image array in custom from in Magento 2.4 <div class="file-item-container mb-2"> <div class="row"> ...
0
votes
1answer
18 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
1answer
18 views

API -> add image with external url instead of base64

Is there any extension that give us the possibility to add external url instead of a base64 string when I adding/update product via magento 2 api?
0
votes
1answer
30 views

How to optimize images in magento2

My site speed is very slow. Can anyone please let me know how can I optimize all the images? So, my site loading can be faster.
0
votes
0answers
14 views

product details page still have product gallery issue image are not showing sometime in magento 2.4

Now i added image back-end but still have product gallery issue image are not showing sometime in product details page magento 2.4
1
vote
1answer
12 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
21 views

Magento 2 - How to resize image using image's url?

How is the right way of resizing images in Magento 2. $image->getData('url'); I have the url of the image, how to resize it using the url? Is there an API / helper that does that?
0
votes
0answers
8 views

Magento 2: Invalid backend response. Data is not JSON in dashboard

When i try to upload a image from dashboard i get the following error: ¿What is the problem? :( Thanksss
0
votes
0answers
6 views

Category Image with Category Id in Magento 2 Api

I want to show category id with category image in magento 2 rest api http://domainname/rest/all/V1/categories?rootCategory=2 this is my api response and here not show category image { "id": ...
0
votes
1answer
36 views

How to create a docker image of an existing Magento 2 website running with Apache/PHP7.2/MySQL/ubuntu 18.04 version

We have a Magento 2 website and are trying to deploy the website as docker containers running in Kubernetes in GCP. At present, we have the website set up with a LAMP. So I believe we need to have the ...
2
votes
1answer
26 views

Get Category image url in magento 2

Can any body tell me how can we get The Category thumbnail image url and Icon image url to display image on frontend in magento 2.3.2
0
votes
0answers
10 views

Some product display default placeholder instead of image

I have a problem with some product image, instead of them magento display placeholder. I already execute image:resize but it didn't help.
0
votes
0answers
31 views

thumbnail image not show in magento 2.4.0

Unable to resolve the source file for 'adminhtml/_view/en_FR/Magento_Catalog/images/product/placeholder/thumbnail.jpg' #1 Magento\Framework\App\StaticResource->launch() called at [vendor/magento/...
0
votes
0answers
19 views

Magento 2 - Update Images

I'm updating the images of my products. I'm using Import menu to do it. I would need to replace the old image by the new. The new image is indicate in a csv file by product sku. The name of the images ...
0
votes
1answer
22 views

Magento 2: Cart product image shows 404 error in new products

I have uploaded some new products to my store, and when I add some of the new product to the cart, the images are not seen: And this happens because the image are not generated in pub/media/catalog/...
0
votes
0answers
10 views

Magento2 - Fotorama image size

I have a little problem. In the image Gallery the size of the image are of 1000px when the image that I have uploaded is 2280px. I would like to put the size at 1140px or max-width of the container. ...
0
votes
0answers
16 views

How to create dynamic product image in Magento 2 on creating Product?

I have created a module to create simple product in Magento 2. I want to create dynamic image for product with product name and save that image as product image. How would i do that ? Any Help is ...
0
votes
0answers
17 views

custom product option drop down get image in magento 2.3

I am trying to add a product custom option drop down in product details page get image in magento 2.3 please check our snapshot product details page.
0
votes
0answers
7 views

Err : Access denied image field in form

I have a BO form, I've been adding some fields it works fine. But since I tried to add an 'image' field, I'm taking an access denied error and in fact this happen even before I hit my controller (...
0
votes
0answers
34 views

WebP Images Google Safari Image Optimization

WebP Images Google Safari Image Optimization We are using Amasty Google Page Speed Optmization Extension for Magento 2 which has Image Optimization options - There are options to covert images to webp ...
1
vote
2answers
46 views

Magento 2.3 aroundCreate() of \Magento\Catalog\Block\Product\ImageBuilder not called

I have create a plugin to change image object and call image url directly from AWS S3 instead of magento. Function should be call on any page where product image will be loaded. di.xml <type name=&...
0
votes
0answers
10 views

Fancybox include a View Product Button

I am using the Land Of Coder Image gallery extension and when I click on an image, it opens a larger version of the image which is what we want. However, I also want to add a button to the bottom ...
0
votes
3answers
103 views

get thumbnail image in product collection magento 2.3

get thumbnail image in product collection magento 2.3 but base image get how to get thumbnail image phtml file <?php $ProductImageUrl = $block->getUrl('pub/media/catalog'...
1
vote
0answers
57 views

Magento 2.3.4 image save error

After updated Magento to v2.3.4 getimagesize('/var/www/project...') called at [vendor/magento/module-media-gallery-synchronization/Model/CreateAssetFromFile.php:78] Magento\...
0
votes
0answers
15 views

Magento 1.9 - wysiwyg insert image not working as expected

I have created a Admin module and added a content wysiwyg editor field. When i tried to insert image by clicking 'Insert File' and it is not adding img to the content field. I here by adding my form ...
2
votes
1answer
52 views

Base images as first image, change positions in bulk - Magento 2.3.5

We have a large catalog (125K products), with a lot of products where the base image is positioned somewhere in the middle of the gallery. The selection of base image itself is fine, this should be ...
0
votes
0answers
8 views

Make last image in galary Base, Small and Thumbnail query - Magento 2.3.5

The following sql query changes the Base, Small and Thumbnail to the first image. We want to use something like this query, but then select the last image in position and make that Base, Small and ...
0
votes
0answers
23 views

Product image gallery stacking images - Porto Theme

My product page is 1 column, and I have my Porto settings for my product images set to Full Width. For some reason, my product images are all coming up stacked one on top of the other, and no matter ...
1
vote
1answer
34 views

Product image cache remove and regenerate live on frontend - M2.3.5

At the moment we have many old product image cache url's on the frontend, with all 404 errors. We can run the php bin/magento catalog:image:resize command to regenerate them, but we have more than 270....
0
votes
0answers
22 views

How to limit 5 maximum images each product in Magento2.3?

I want to limit 5 images per product. Admin can't able to upload more than 5 images. How can I achieve this?
0
votes
0answers
13 views

Image gallery area disappear in admin product

I am using magento 1.9.3.4 I'm trying to add images for product in catalog->Manage product->side bar/images option But I can't see image gallery and upload button So I have a look console log ...
1
vote
0answers
26 views

Thumbs not showing in 'insert file' in admin

For backend - both in the 'Media Gallery' and 'insert file' the thumbs are not being shown. Broken links are being shown. I have tried resetting all the file and folder permissions - no change I ...
0
votes
0answers
42 views

How to add exist image to simple product by REST API

My case is: I'm creating a configurable product by API <-- in this proces I'm adding a new image by: var newImage = new CatalogProductAttributeMediaGalleryManagementV1CreatePostBody(...
0
votes
1answer
79 views

Remove product image from checkout page

How to remove product picture from checkout page in opc-block-summary block
0
votes
0answers
15 views

Magento2 Responsive size Images for CMS pages

Magento2 - How can I upload responsive image for CMS pages. I have uploaded images on my CMS pages, but the google pagespeed doesn't take my images as responsive. How can I achieve this?
0
votes
0answers
13 views

Magento2 Product Image Size

Magento2, I am uploading Product Images via CSV, what is the size of product Image I should upload so that it displayed properly at all places like list page, cart page & Details page. Also ...
0
votes
1answer
24 views

How to Image resize this container in product page - Magento 2.3

In the product page i need to resize the product image container but i can't how to resize this, Please check the image for reference The below image shown with big gap between the image and border ...
0
votes
1answer
34 views

Customize mini-cart - delete image and edit button

How to remove the picture and edit button from the mini-cart without using CSS Expected Result
1
vote
0answers
20 views

Magento 2 system configuration image file upload into my custom directory with the size validation

I am working a Magento Extension, as per my requirement I've to upload an image from the system configuration field. I have done the image upload, once the image uploaded the file stored in (root/pub/...
0
votes
1answer
49 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
108 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
120 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
28 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
39 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
15 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
26 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 ...

1
2 3 4 5
17