Questions tagged [image]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
28 views

Magento 2 Get product image url by sku

What is the best way to get product image(thumbnail) by sku ?
0
votes
1answer
19 views

How to include image path in script

My script : <script> require(['jquery'], function($){ jQuery.ajax({ url: '<?php echo $this->getUrl('customwishlist/index/wishlist') ?>', method: 'get', dataType: 'json', success: ...
0
votes
2answers
25 views

image upload in home page banner

Root slideshow, home page banner image upload error "error": Disallowed file type.","errorcode":0 magneto 1 , please solve
0
votes
1answer
15 views

Magento 2 - Images are not getting loaded after changing Media Base Url

I have two projects: relaunch.company.de redesign.company.de (clone from relaunch.company.de) Note: The base url of both projects is set to their pub directory. I want to setup redesign.company.de ...
0
votes
0answers
9 views

Export/import base images in Magento 1,9

I would like to export ALL base images on my database in Magento 1.9 platform in order to edit them in an image editor and import them (rewrite) once edited.
0
votes
0answers
16 views

Image uplaod when creating admin user

I am looking to add an image upload when creating/editing admin users. I am trying to figure out the best way to do this. I have already added a custom text field to this form using a plugin. Magento\...
0
votes
2answers
101 views

Can no longer upload images on Magento 1.9 now Flash is no longer supported

Is there any way to still upload images on Magento 1.9 now that flash is not supported on Chrome or any other browsers?
0
votes
1answer
19 views

Increase product image size in Amasty's One Step Checkout Magento 2

Amasty put their product image size at 75px in the 'Your Order 'Order Summary area, and mine is displaying at half that due to some css I can't locate. Please put an item into the cart on their demo ...
0
votes
1answer
24 views

How to override phtml / add a static image to .phtml file from the extension?

I'm try to add a banner image to the list.phtml, but it's not displaying. This is what i did: step 1: copied /public_html/vendor/mirasvit/module-rewards/src/RewardsCustomerAccount/view/frontend/...
0
votes
0answers
15 views

Magento 2 - Add image to a product programmatically without saving the whole product

I'm writing a script which saves products programmatically using a large file of data (6k products). My file can add or update a product. Saving a product is a long process, so if the product already ...
0
votes
1answer
29 views

How to update value of custom customer attribute (image) from frontend in magento 2

Trying to update custom customer attribute value while customer edit from frontend , and my field is file upload control but unable to save the attribute Tried $customer = $observer->getEvent()->...
1
vote
1answer
46 views

How to get image in PHTML file?

Image path -> app/design/frontend/Mycustom/Mytheme/web/image/one.png how to get image in PHTML (app/design/frontend/Mycustom/Mytheme/Magento_Search/templates/form.mini.phtml) file, <?php echo ...
0
votes
0answers
18 views

Placeholder image huge on sticky header

When I have a product with an image and I scroll down, the image in the sticky header is 50x50px, but when I don't have an image and it defaults to the placeholder, the placeholder shows up as 470x470....
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
1answer
34 views

How to remove default cart icon image in header from my custom theme?

I have developed custom theme, and added own cart icon image using app\design\frontend\Mytheme\theme\web\css\source_extend.less .minicart-wrapper .showcart::before { // content: "" !...
0
votes
0answers
9 views

M2 Image jumps in product details page

There's an annoying effect of an image 'jumping' on the page when a product page is opened up. It can be seen on any default Magento 2 installation. It looks like even provided with the exact pixel ...
0
votes
2answers
26 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
50 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
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
1answer
29 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
34 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
17 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
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
25 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
11 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
17 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
193 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
50 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
11 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
39 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
25 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 ...
1
vote
1answer
31 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
17 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
18 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
21 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
8 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
1answer
50 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
57 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
204 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
73 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
17 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
60 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
9 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
50 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
49 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
28 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
17 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
1answer
54 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 ...

1
2 3 4 5
17