Questions tagged [image]

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

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

Set programmatically image roles

I have that in my backoffice : and I need that: This solution does not work for me : if($key == 1){ $prod->addImageToMediaGallery($imgPath, array('image', 'small_image','thumbnail'), ...
user avatar
1 vote
1 answer
24 views

Add image attachment on already existed default shipping email magento 2.4

I am trying to add the image as an attachment along with the shipping email when a customer is notified like this $this->_shipmentNotifier->notify($orderShipment); can anyone have any ...
user avatar
  • 1,321
0 votes
0 answers
21 views

problem with image

Image is not displaying from cms block: while inspecting the image (%5Ccache%C) on the PHP page. media/catalog/product%5Ccache%5Cb61ea1bed30c1f9d9fe7f48eaf8288bc%5C//m/e/meal.jpg instead of (media/...
user avatar
0 votes
0 answers
26 views

Magento 2: Product image label can not be removed for Product Listing page

I have added alt text for the product and it shows correctly on the product detail page as well as a listing page but then I want to remove alt text and want to show default alt text as per Magento ...
user avatar
0 votes
0 answers
15 views

Product picture in grid issue

We have some issues where our product picture in grid view has different sizes. Does anyone know how to fix this? Magento 2.4.3 Theme: Porto theme we did not have this issue in Magento 2.3.x Please ...
user avatar
0 votes
0 answers
16 views

Why does Magento 2 disperse product image files into multiple folders?

When uploading products into Magento 2, by default the system disperses images into folders based on the image name. file.jpg would end up in pub/media/catalog/product/f/i/file.jpg Can anyone explain ...
user avatar
  • 1
0 votes
0 answers
9 views

Magento 2.4.3 - Layered Product Images

Is there any way to layer product images so I do not need to create/store numerous images for each product? For example, if I am selling coffee mugs in various colors and offer a multitude of designs, ...
user avatar
1 vote
1 answer
21 views

Darken the arrows below the magnified image

Here's a screen shot from the bottom of a product page, magnified image, in Shopify. Please zoom in the image. Notice that the < X > is very faint. Sometimes on some pages, they're almost ...
user avatar
  • 175
0 votes
0 answers
10 views

Do Files uploaded through a Product-File-Option ever get deleted automatically?

Magento features the possibility to allow customers to upload files when ordering certain products using an option on product-configuration. The uploaded pictures are stored under magento-root/pub/...
user avatar
0 votes
0 answers
18 views

Pass variable to "image_with_borders.phtml" from list.phtml

In category list.phtml, it use <?= $productImage->toHtml() ?> to echo the image whereas the image html is in image_with_borders.phtml $productImageHover = $block->getImage($_product, '...
user avatar
  • 2,048
0 votes
1 answer
23 views

Configure button to remove image from imageUploader

Good morning, could someone help me configure the button to delete image from the imageUploader field, the image uploads it without problem, but when I press the delete button, the entry is clean, but ...
user avatar
0 votes
0 answers
20 views

Best option to bulk import products and images?

What's the best option to migrate/bulk import products from one Magento 2 instance to another, that includes the product images???
user avatar
0 votes
2 answers
101 views

How to add picture tag in fotorama.js to load webp image in Magento 2

How to add picture tag in fororama.js to display the webP image. Generally we wants to give control to browser to load the webp image based on the versions. Please suggest if incase any alternate. ...
user avatar
0 votes
1 answer
28 views

Premium image gallery that support WebP

Which Premium Image gallery supports WebP format for Magento 2. Or how to find does my gallery supports WebP format. And when I say support I mean no conversion. I just want to know will the extension,...
user avatar
  • 1
0 votes
0 answers
51 views

PDf invoice Image issue

I am using Magento 2.3.7, and when I add the image to the invoice it's showing only the image path but does not display the image in the downloaded pdf invoice. Below is the code that I am using. file:...
user avatar
0 votes
1 answer
24 views

why not save into folder magento 2

Save in DB but not in folder if ((isset($_FILES['featured_image']['name'])) && ($_FILES['featured_image']['name'] != '') && (!isset($data['featured_image']['delete']))) { ...
user avatar
  • 31
0 votes
0 answers
89 views

How to add image with link in CMS Block using Page builder in Magento 2?

In Magento 2.4.2, I am trying to add the CMS Block with image and link Image should be based on Device - Responsive ie., for web page view one image, for mobile view different image. How to add this? ...
user avatar
  • 1,094
0 votes
1 answer
151 views

How to remove cache images if they not in used in magento 2?

i need to create new script if the image not present in real folder and not in used than delete from cache folder example Cach folder image pub/media/catalog/product/cache/...
user avatar
0 votes
0 answers
32 views

Magento 2 Image upload fakepath issue

In customer Edit, I have added one tab. Using form I try to add file upload but the problem is it returns a fake path when I print postvalue() here is the code of form field $fieldset->addField( ...
user avatar
  • 21
0 votes
0 answers
20 views

How to override Paypal Image or ConfigProvider.php Magento 2?

I want to change the image of the Paypal module, Setting for images is vendor\paypal\module-braintree-core\Model\Ui\PayPal\ConfigProvider.php 'paymentAcceptanceMarkSrc' => '...
user avatar
0 votes
0 answers
49 views

Magento 2.3.5 WYSIWYG TinyMCE Paste image from screenshot

I need to paste image from clipboard data made from screenshot. Working on Windows 10 I can use WIN+SHIFT+S to capture a portion screen and then past it to an editor. Nothing is pasted on TinyMCE ...
user avatar
  • 1,198
0 votes
0 answers
14 views

Display product images in succes page

I need to display product images in success page without using object manager
user avatar
0 votes
0 answers
47 views

Magento2 Update Image gallery

There is one customisation i.e when ever user selected any custom div's like TEST 1 (or) TEST 2 we need to update an image gallery with the respected selected product images on PDP. How do we achieve ...
user avatar
0 votes
0 answers
14 views

Increse sharpness and contrast of images while uploading through csv in magento 2

I want to increase the sharpness and contrast of the images uploaded by Magento as according to a client, dull images should be converted to sharp images with a little boosted contrast. I found many ...
user avatar
0 votes
1 answer
80 views

Remove main product image from child products of configurable products from product details page in magento 2

Why Magento2 is showing the Main products(Configured products) image in child product while choosing the option from the products details page. I don't want to show the main product image in the child ...
user avatar
0 votes
0 answers
15 views

Upload Image URL is wrong in Magezon Blog - Magento 2.4.2

Hi Guys I am using the magezon blog, in that when trying to upload an image the image is URL is getting 404 Error when I checked it I found this in the network before the URL there is white space so ...
user avatar
  • 300
0 votes
2 answers
30 views

magento 2.3.5 image cache being auto generated

Images inside cache folder are being auto generated I've truncate 3 specific folder that I know we don't need it after while checking again it has generated all over again when there hasn't been image ...
user avatar
0 votes
1 answer
113 views

Magento 2 : How to save jpg image in var/custom folder?

How to save my image in var folder ? Now I have code in controller file.
user avatar
2 votes
1 answer
241 views

Magento 2 : How to display cms_page custom attribute image in frontend?

After save image is store in pub/media/cms/page/attribute/my_image. And save image name in database cms_page table my custom column. So how to display image in frontend ? Backend image Fronted Image :...
user avatar
0 votes
0 answers
12 views

Set Product Image From Image Gallery

Is there any way to get an image for a new product direct from image gallery? i want to categorize photos into folders on image gallery and then putting them into the products. My Magento version is 2....
user avatar
0 votes
1 answer
157 views

Magento 2 file upload error

I have upload customer image using ajax.I have upload images jpg,png,jpeg etc extension is working fine.But i have upload pdf extension showing below error Notice: Trying to access array offset on ...
user avatar
  • 3,157
0 votes
0 answers
14 views

Magento 2.3 - Image with SKU database dump

I need to export a CSV file with the following info: IMG name SKU I found the SKU in catalog_product_entity And I also found the IMG names in catalog_product_entity However I do not have any value ...
user avatar
0 votes
1 answer
381 views

Remove loader from product view page

Magento 2 adding page loading in product view page like this below in body tag <body data-container="body" data-mage-init="{&quot;loaderAjax&quot;: {}, &quot;loader&...
user avatar
  • 828
0 votes
0 answers
18 views

Adding sku number in image field

I'm looking for an automated solution where the sku number is added to the image on frontend. Like this below: Running Magento 1.9.2 Thanks :-)
user avatar
  • 1
0 votes
0 answers
75 views

How to save Image data using Magento 2.4.2?

I have created an input type image using Magento 2 Extension and want to save Image data. Now I want to save Image data in Magento 2 Database Custom table. I have created custom table and run Ajax ...
user avatar
  • 526
0 votes
1 answer
100 views

Magento 1.9.2.4 : Product Images and browse and Upload button Missing

I am using Magento ver. 1.9.2.4, I have tried all solution available on different threads but unable to get "Browse Button" and "Upload Button" in product image tab. I have tried ...
user avatar
0 votes
1 answer
631 views

Changing Magento 2 Page Builder Images to use <picture> and srcset

I am trying to change the magento2 page builder image to include picture and source set tag. I made a module app/code/[Vendor]/PageBuilder/view/adminhtml/web/template/content-type/image/full-width/...
user avatar
0 votes
1 answer
38 views

Magento 2 preference not working for Magento\Customer\Model\Metadata\Form\File

I want to create preference for this file Magento\Customer\Model\Metadata\Form\File but its not working so please give some solution for this problem how to solve it di.xml code
user avatar
  • 3
1 vote
0 answers
50 views

How to get Image id by image path?

Beginner at magento 2 and i want to know how can i get the image id using the image path "/3/4/341467-1_1.jpg", how can i do this programmatically? any help is apreciated.
user avatar
1 vote
0 answers
28 views

How to add images in js

How to include images in js, My code : if (firstStore.address && firstStore.state && firstStore.zip && firstStore.store_hours_weekdays && firstStore....
user avatar
  • 103
0 votes
1 answer
23 views

Image is not loaded in product detailed page only magento 2.3

I have added the image in admin panel backend image show homepage,category page show but product detailed page image is not shown certain url link.i have shared. URL:https://sarikart.com/3003maroon-...
user avatar
0 votes
2 answers
89 views

Image url adding some of the pagespeed codes

I have not loaded for any scripts but automatically added the pagespeed in image url adding some of the webp image format. so how to rectify the error and images are not show. xxx.com/pub/media/logo/...
user avatar
1 vote
0 answers
237 views

After Magento 2.3 to 2.4 upgrade Category page not loading in frontend

Magento 2.4 upgraded successfully. All are working in admin and storefront but only problem with category page showing error " Error: Call to a member function getUrl() on null in /home/mydomain....
user avatar
0 votes
1 answer
227 views

WYSIWYG Editor media url not working in magento 2.4.0

Add this code WYSIWYG Editor <p><img src="{{media url="wysiwyg/menu/test.jpg"}}" alt=""></p> but it's not working in magento 2.4.0
user avatar
0 votes
0 answers
41 views

display image admin ui magento 2.3.1

I have an issue with display image from admin UI component in magento 2.3.1.Who is solution help me ! Here is my source: <?php namespace Booking\Hotel\Ui\Component\Listing\Column; use ...
user avatar
  • 1
0 votes
1 answer
47 views

Images not showing on configurable products

I have all of the needed attributes in the attribute set, but none of the images are showing on configurable products. They're visible on the backend, and I see them when I add the images to the cart, ...
user avatar
0 votes
2 answers
339 views

How to change only a specific image size in magento 2?

I have changed the below section of my custom themes' view.xml <image id="product_page_main_image_default" type="image"> <width>1200</width> <height>...
user avatar
  • 2,567
3 votes
3 answers
317 views

Magento 2 Get product image url by sku

What is the best way to get product image(thumbnail) by sku ?
user avatar
0 votes
1 answer
38 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: ...
user avatar
  • 103
0 votes
2 answers
61 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
user avatar

1
2 3 4 5
18