Questions tagged [image]

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

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

Image Not Shown Unless Added & Deleted First

I've been working on a module that adds Configurable Child Products to Cart at the Simple Product they are. This all works fine. The part of the module I'm working on now is to get the Child Product ...
Chris Oliver's user avatar
0 votes
0 answers
22 views

Change the order of the images

Does anyone know if it is possible to change the order of the images already imported through a CSV template? Example this is the loaded order I want to alternate it by this order I appreciate the ...
Erick Vernaza's user avatar
0 votes
1 answer
31 views

get Image thumbnail Resize in custom Class magento 2

I am getting my images in the array. I need to check the if image in the array is empty then it should be replaced with the thumbnail image. Here is my code : if (is_null($imageData->getData('...
Rana Zain's user avatar
  • 618
0 votes
1 answer
74 views

Getting CORS Error for Image in PWA

I am facing a CORS issue while fetching image in PWA Studio..Image works fine in magento root but while fetching with same URL in pwa it is giving cors error in console.. The Code of the page is below:...
MihirBangia's user avatar
0 votes
0 answers
14 views

How to allow "cyrillic" characters in new Media Gallery (description for images, tags)

Just today I found out that Magento 2.4.4 have a new "Media Gallery" allowing to add a description (alt text) for images and tags.I want to benefit from it to add "alt text" to ...
rt89's user avatar
  • 11
0 votes
0 answers
16 views

Dynamic banners not loading after cache clear

Can some one please help me here. I cleared the Product images cache as many images were incorrect. I'm unable to recall the cache. The main dynamic banners on the homepage are not loading. I ran the ...
Sushma Varadaraj's user avatar
1 vote
1 answer
57 views

Porto theme - Magento2 - Product page - Image position

Check this image: This is my product details page. Image on the left is moving up with scrolling. I don't want it to move up. I want too always be fixed on the right as long there is a text on the ...
XraySensei's user avatar
0 votes
1 answer
112 views

Ratio of images changed after update

After updating from Magento 2.3.5 to Magento 2.4.5-p1, I noticed that the aspect ratio of 1 image of 1 specific productpage has been changed. The rendered size, rendered aspect ratio, intrinsic size ...
JanosDjango's user avatar
0 votes
0 answers
32 views

How To generate Image Using Magento2

I have a requirement to generate image and PDF using Magento2 , currently I have generated the Pdf file using custom data with the same content I need to create an image file also in png format. Can ...
amith lal's user avatar
  • 766
0 votes
0 answers
13 views

Magento2 Image not saving into custom db table

Created a form fields are saving data into db table but image data is not getting saved. $data = $this->getRequest()->getPostValue(); Tried to print but it dose not showing image data. My ...
Naman Bapna's user avatar
0 votes
0 answers
54 views

Magento 2 Multiple Image Upload

I want to add multiple images in magento2 ui component and under each image i want to add sub images currently i am using the concept of product gallery for adding multiple images upload but how i can ...
Syed Hassan Zamir's user avatar
0 votes
0 answers
122 views

ImageMagick not working for Media Gallery images in Magento 2.4.3

I switched the image processor from GD2 to ImageMagick, as well as forcing Magento to convert all images to WEBP. Everything works as expected for different image types (product, category, ...
Demastorios's user avatar
0 votes
0 answers
20 views

Images not displaying in product tabs

The images that are accessed from a subdomain of the site aren't displaying in tabs. If I copy the URL to a new browser tab, they are accessed without any problem. I'm not sure what is causing this. ...
CodeForGood's user avatar
0 votes
1 answer
52 views

Magento 2.4: How to show scaled images in a product list or grid?

I have 300x300 image size for "Small" images, which shown in product list and grid views. The issue is that my goods contain text and it barely visible on optimized 300x300 pictures. ...
DeniDoman's user avatar
0 votes
0 answers
155 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'); $...
milan's user avatar
  • 11
1 vote
3 answers
798 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?
JGeer's user avatar
  • 1,395
0 votes
1 answer
42 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: ...
Alain Stout's user avatar
0 votes
0 answers
101 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 ...
Jimit Bhavsar's user avatar
0 votes
1 answer
19 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?...
Bella's user avatar
  • 51
0 votes
1 answer
304 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 ...
Jaisa's user avatar
  • 2,556
0 votes
1 answer
650 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'), ...
idIA Tech's user avatar
1 vote
1 answer
58 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 ...
Asad Ullah's user avatar
  • 1,461
0 votes
1 answer
23 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 ...
CodeForGood's user avatar
0 votes
1 answer
165 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 ...
GStiven's user avatar
  • 31
0 votes
2 answers
582 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. ...
Shanmugam's user avatar
0 votes
1 answer
301 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,...
Stefy's user avatar
  • 1
0 votes
1 answer
30 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']))) { ...
NoOn's user avatar
  • 65
0 votes
1 answer
1k 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/...
Jay Parmar's user avatar
0 votes
2 answers
327 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 ...
Shreyas Vispute's user avatar
0 votes
2 answers
142 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 ...
Juliano Vargas's user avatar
0 votes
1 answer
645 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.
Darshit Parmar's user avatar
2 votes
1 answer
545 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 :...
Darshit Parmar's user avatar
0 votes
1 answer
519 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 ...
Mohit Patel's user avatar
  • 3,681
0 votes
1 answer
955 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&...
Ramesh KR's user avatar
  • 836
0 votes
1 answer
167 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 ...
Muhammad Ajmal's user avatar
0 votes
2 answers
2k 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/...
Jason Kollias's user avatar
0 votes
1 answer
193 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
Amruta's user avatar
  • 3
1 vote
0 answers
92 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.
Rafael Fagundes's user avatar
1 vote
0 answers
93 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....
zus's user avatar
  • 155
0 votes
1 answer
24 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-...
maharajikr Kr's user avatar
0 votes
2 answers
169 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/...
maharajikr Kr's user avatar
1 vote
0 answers
351 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....
tech clouds's user avatar
0 votes
1 answer
567 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
Ravindrasinh Zala's user avatar
0 votes
0 answers
112 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 ...
Conal's user avatar
  • 1
0 votes
1 answer
147 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, ...
web master's user avatar
0 votes
2 answers
982 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>...
Mujahidh's user avatar
  • 2,701
3 votes
3 answers
2k views

Magento 2 Get product image url by sku

What is the best way to get product image(thumbnail) by sku ?
Hamendra Sunthwal's user avatar
0 votes
1 answer
216 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: ...
zus's user avatar
  • 155
0 votes
2 answers
94 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
Jaideep Manocha's user avatar
0 votes
1 answer
610 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 ...
Black's user avatar
  • 3,150

1
2 3 4 5
18