Questions tagged [image]

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

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

magento2 image add in pdf how to? this code not working for me

$post = $this->getRequest()->getParam('sku'); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $helperImport = $objectManager->get('\Magento\Catalog\Helper\Image'); $...
  • 1
1 vote
3 answers
119 views

How to add <picture> around the fotorama__img on the productpage - Magento 2.4

We would like to add a <picture> </picture> element around the main image with class fotorama__img on the productpage. How can we achieve that?
  • 1,504
0 votes
1 answer
17 views

Images in content from another url doesnt appear on frontend

Images with another url than our own: https://takoda.shop Doesn't appear on frontend but broken. While images from our own url does appear. Can't find a solution for this, anybody knows? See here: ...
0 votes
0 answers
28 views

Capture image button for mobile and laptop device: M2

How can i take (Capture) image from camera for laptop and mobile devices? this navigator.mediaDevices.getUserMedia isn't working in magento2. Note: This (capture.html) simple html is also not working ...
0 votes
1 answer
11 views

How to change an image used in template for magento 2.2.6

My template includes a background image on the front page that's unnecessarily huge. I've created a resized, tinyfied version of the same image but I can't figure out how to change it. Can anyone help?...
  • 1
0 votes
0 answers
8 views

A seperate image for customizable option for an item

this is a long shot but: Is it possible to, when you select a customizable option (text swatch in this case), make a picture of it appear next to it. I'm attaching a picture to show what i mean: I'm ...
  • 3
0 votes
1 answer
44 views

How to get absolute path of default place holder image in magento 2

How to get the absolute path of the default placeholder image of the products in Magento 2 I used the below code $imagePath = $this->imageHelper->getDefaultPlaceholderUrl('image'); but it is ...
  • 2,418
0 votes
1 answer
137 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'), ...
1 vote
1 answer
44 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 ...
  • 1,351
0 votes
0 answers
35 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/...
0 votes
0 answers
33 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 ...
0 votes
0 answers
29 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 ...
0 votes
0 answers
22 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 ...
  • 1
0 votes
0 answers
10 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, ...
0 votes
1 answer
22 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 ...
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/...
0 votes
0 answers
41 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, '...
  • 2,100
0 votes
1 answer
44 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 ...
0 votes
0 answers
21 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???
0 votes
2 answers
232 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. ...
0 votes
1 answer
72 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,...
  • 1
0 votes
0 answers
95 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:...
0 votes
1 answer
26 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']))) { ...
  • 65
0 votes
0 answers
276 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? ...
  • 1,094
0 votes
1 answer
436 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/...
0 votes
1 answer
126 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 ...
0 votes
2 answers
58 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 ...
0 votes
1 answer
255 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.
2 votes
1 answer
324 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 :...
0 votes
1 answer
305 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 ...
  • 3,267
0 votes
1 answer
519 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&...
  • 828
0 votes
1 answer
114 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 ...
0 votes
2 answers
975 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/...
0 votes
1 answer
71 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
  • 3
1 vote
0 answers
59 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.
1 vote
0 answers
40 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....
  • 105
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-...
0 votes
2 answers
110 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/...
1 vote
0 answers
286 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....
0 votes
1 answer
307 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
0 votes
0 answers
61 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 ...
  • 1
0 votes
1 answer
60 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, ...
0 votes
2 answers
561 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>...
  • 2,609
3 votes
3 answers
783 views

Magento 2 Get product image url by sku

What is the best way to get product image(thumbnail) by sku ?
0 votes
1 answer
64 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: ...
  • 105
0 votes
2 answers
64 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
1 answer
257 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 ...
  • 2,571
0 votes
2 answers
213 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
1 answer
181 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
1 answer
111 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/...

1
2 3 4 5
18