Questions tagged [media-images]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

Magento 2 set child product image from URL

Magento 2.3.5 How to set child product image from URL for configurable product on the product detail page Example - product URL is - http://xyx.com/product.html#447=5439 dropdown is selecting ...
1
vote
1answer
30 views

magento 2 Uncaught TypeError: Cannot read property 'data' of undefined [closed]

Magento 2.3.5 getting error on the product detail page of configurable product - Getting this error - Uncaught TypeError: Cannot read property 'data' of undefined at Object.returnCurrentImages (...
1
vote
1answer
16 views

The images show on frontend pagespeed.ic._LOWhFVaw2.webp after image filename

For example the images address on frontend website show this: https://takoda.shop/pub/media/logo/default/170xNxTakoda_met_Tijger_O_logo_kleuren_nieuw.png.pagespeed.ic._LOWhFVaw2.webp It adds at the ...
0
votes
0answers
34 views

Magento 2.4.1 Exception #0 (ReflectionException): Class media_image does not exist

I have migrated the website from Magento 2.1.0 version to the Magento 2.4.2 version. When I open the product edit section then I got the following errors: Exception #0 (ReflectionException): Class ...
0
votes
1answer
13 views

Magento 2: changes made on one store must be apply to default store too

When you edit a product on the All Store View scope it applies the changes to all the stores. I want the reverse of it like if I made changes to a different store then that change must be applied to ...
0
votes
2answers
31 views

Assign images to products programmatically

I want to assign images to products in my store. The images name the same SKU product name. I put my PHP file in root/pub and tried this code: <?php ini_set('display_errors', 1); ini_set('...
0
votes
0answers
34 views

M2 | ci6.googleusercontent.com gmail proxy server stopping images to load in email templates

I am having gmail proxy server issue for showing images in email templates. At the start of image URL which is http://localhost/pub/media/email/images/logo.png this is getting appended https://ci6....
0
votes
1answer
26 views

Magento 2 : how to include custom image in email template?

I have made some email templates, i am not much sure where i can add image files & use it in email templates ? Is their is possible way to get it ? Please let me know your thoughts on this. ...
0
votes
1answer
20 views

Image resize issue

I am uploading below image for the product via backend. But it changes to below image It is clearly visible that it changes the color. I have tried using ImageMagik also. I have even tried this ...
0
votes
0answers
7 views

Difference in output between Model method and Test/Unit method for Model?

I have created one more custom attribute (custom_image_type) based on frontend_input = media_image. I just ran the following File level unit test on below file. \Magento\CatalogImportExport\Test\Unit\...
0
votes
1answer
32 views

Configurable product error: Call to a member function count() on array

I have an error that occurs in production only. And even then it is about 3/10 times that it occurs. Refresh, seems alright, refresh again, seems broken etc. On the staging site + my docker box it ...
0
votes
1answer
30 views

How to import product images programmatically with the use of custom script in magento 2?

I have all product images in one folder. Images are in path like - pub/media/Fotos/MA/{{ sku }}/ So need to import images as per SKU folder. I want dynamic script for it.
3
votes
1answer
49 views

Magento 2 : Custom API code to upload multiple product images programmatically

I am making custom Magento API to create products. I can make products using custom API. Now my requirements is to upload multiple images to that API. Can anyone helps me for reference code to upload ...
0
votes
1answer
37 views

Data migration issue : SQLSTATE[23000]: Integrity constraint violation from maento 1.9 to magento 2.4.1

I am migrating the data from Magento 1 to magento 2.4.1 by running the following command php bin/magento migrate:data --reset vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.0.1/...
0
votes
1answer
28 views

How to migrate product images before using Data Migaration tool from magento 1 to magento 2

I wish to migrate data from magento 1 to magento 2 using data migration tool. I know the procedure for migration using data migration tool. But i am having doubt on, how to migrate the product images &...
0
votes
2answers
29 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
32 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
0answers
23 views

Magento 2.3.2 How to display custom attribute (image) in CMS Block

Each one of my products has a custom media image attribute which is an called 'height-image'. I would like to display this image in a CMS Block on the product page. Can anybody explain how to call the ...
0
votes
1answer
137 views

How to add and Remove media gallery images store wise programmatically magento 2

I have followed few blogs to add and remove media gallery images but not able to set gallery images as per store wise programmatically. https://www.siphor.com/adding-and-removing-media-images-...
0
votes
0answers
25 views

Related Product Images are showing up really small compared to feature Product Images. Images attached

I have this strange thing going on. Related Product Images will show up fine after I empty cache. However, once I reload the page they show up really small. Looking at console. You can see my grid ...
0
votes
0answers
18 views

Magento 2 Import Images form external URL Taking Infinite wait

My csv format is like this: sku,base_image,small_image,thumbnail_image,additional_images 7611009955,https://files.plytix.com/api/v1.1/file/public_files/pim/assets/35/ca/ca/5c/...
0
votes
1answer
137 views

Media images not showing in custom module

I have a problem, I have created a custom module in my Magento site, so in that module I'm calling custom attributes to display some content and images, but when I'm adding media image in this ...
0
votes
0answers
71 views

Media Upload Issue - Session “getCurrentPath()” is empty

I'm unable to upload media gallery images in my Magento 2.3.4 website. It works on my local ubuntu setup but fails on the development/staging server. The upload fails with the error message A ...
1
vote
0answers
25 views

how to replace image url get by wysiwyg editor in Magento 2.3.5

I got image like this from uploding image by wyusiwyg editor: <img src="{{media url="http://example.com/media/wysiwyg/the-picture.jpg"}}" alt="" /> but i want to ...
1
vote
0answers
57 views

PWA get media backend url

Is there a readily available way to get Media url path from component ? I know there is a getMediaUrl fetching from graphql in venia-concept/webpack.config.js Tried in my component: global....
1
vote
2answers
26 views

How can I get product image from REST API as HTTPS

I use V1/getproductimage/<sku> and get product's image url from API. It returns [ { "product_image_url": "http://<host>/pub/media/catalog/product/cache/...
1
vote
2answers
44 views

Don't show attribute image if there is no

I set a custom image role, after uploading and selecting the image as "auszeichnung_1" it will appear on the product page. However if I do not select an image, I get on frontend this error: ...
2
votes
0answers
442 views

How to delete specific product images from Magento 2 database and physical images from folder?

Deleting selected product / SKU images from Magento 2 database and the physical images files from the media product catalog folders which are dynamically created by Magento during image upload. ...
0
votes
0answers
123 views

Magento 2.3.4: How to serve images in next generation format?

Web.dev performance metrics suggest "Image formats like JPEG 2000, JPEG XR, and WebP often provide better compression than PNG or JPEG, which means faster downloads and less data consumption"...
0
votes
0answers
30 views

Image's don't upload on product page and shows spinner icon

I'm attempting to add product images when adding a new product but I'm having a problem. The image uploads, but the spinner remains. As shown below: I've done some digging. If I open the inspector ...
0
votes
0answers
6 views

Change current image type by product repository

I'm trying to change media type to the first loaded image in one product. I imported thousands products from an other system, but by some products didn't work properly and now I try with the \Magento\...
0
votes
2answers
138 views

Image cache is not generated properly when importing new products - Magento 2.3.4

I have recently imported 200 products, the import went well and the images do show up on the back-end correctly, however there is no cached version available. If I look at the category page and image ...
0
votes
1answer
29 views

Cached images are missing from frontend and product pages

Certain images are missing from my frontend. The cached image location seems to be wrong however all the rest of the images are there and intact. I am just wondering why those images are not ...
0
votes
1answer
42 views

Magento 2.3 Cloud Enterprise - Not able to upload any picture/image at all (error messages)

I'm very new to Magento and I have a functional background. I have read and followed all Magento commerce functional manuals on how to configure the Backend (creating products, customers, adding ...
0
votes
0answers
144 views

mobile view image quality as blurry in product list and details page magento 2.2.4

Image quality blurry issue in mobile view product list/details page. magento ver is 2.2.4. I found the reason for this issue. Having 2 MB image file and product uploaded in admin side. Then i can see ...
0
votes
1answer
31 views

How To Upload Images and Show Their Thumbnails From Custom Module Admin Form

I have a custom grid. Need to upload product images from admin form of the custom module. Here is the grid Edit file at: app\code\local\Crud\Banner\Block\Adminhtml\Banner\Edit\Form.php $...
1
vote
0answers
64 views

Magento 2.3.4 version product thumbnails & product image issue on product detail page [PDP]

I have just updated Magento to 2.3.4 but facing an issue of images on Product Detail Page(PDP). I have changed the layout of thumbnails as vertical. After changing the thumbnail image layout on PDP ...
2
votes
1answer
46 views

Images URL is getting broken at frontend in mobile view

I created custom attribute with name Product Header Info and added the following content in the text editor: I am getting broken URL at frontend.When I am inspecting the image it is showing something ...
0
votes
1answer
62 views

Magento2 - Need to add External Images from external media host. How the image path is stored in DB?

The Magento OOTB functionality has the option of adding images from the external media host. I just need to use both locally stored images and images from different media hosts instead of one media ...
0
votes
1answer
62 views

How to get a list of all products without images in Magento 2?

Is there a way of seeing a list of all the visible products on the fronted that do not have images linked to them.
3
votes
0answers
147 views

Change Additional product Images based on the selection of color (custom option) Magento 2

I want to change the additional images based on the selected color on the product page. There are many custom options on the product page. My requirement is that, change the additional gallery images ...
0
votes
1answer
922 views

Magento 2 Add Image Upload in Configuration issue “The base directory to upload file is not specified”

I am new in MAgento2, and I installed custom module of Magento 2.3 to add image file upload configuration in system.xml. But i encountred this isuue when i try to save the config : system.xml <?...
2
votes
1answer
369 views

Custom Attribute for Product Image Not Showing Saved Values in Admin Form (Media Gallery Attribute)

Similar to below: how to save image custom attribute in magento 2 Have followed above question and added a custom text area attribute. So far the field shows for me under "Alt Text" and then ...
0
votes
2answers
615 views

Does magento 2.3.3 accept external image server?

After successfully completed data migration, extra slash added on image url if image get from other server. Note : If url like this -> magento1.com/media/catalog/product/2/9/29594114-1.jpg instead ...
0
votes
3answers
572 views

Unable to get Product custom image role in magento 2

i have created new image role name "tiles_images", i product listing page i want to show tile_image only , for this i have done below code but that seems not working i am using below code in my ...
0
votes
0answers
25 views

Magento 2 Image issues

I've been having an issue with getting the product images to load properly. I migrated the site from M1 to M2 and brought over all of the media files per the recommended methods. Some of the product ...
0
votes
1answer
81 views

Magento 2 category image 404 with store code in url

I have a phtml file in my theme that is added to category page via XML updates tab. I read image in phtml like so: $this->getUrl('media/catalog/category/').$_category->getImageUrl() My theme ...
1
vote
3answers
183 views

Can't get media image in the phtml file

I have a module that has a phtml file. I want to add an image from pub/media in that phtml file, but my attempts have been unsuccessful. pub / media / catalog / category / shutterstock_259609874 ...
2
votes
1answer
224 views

Magento 2 get hidden image programmatically

I have a custom module for exporting links of my product images. With this code: public function getImageAttributes() { $attributes = [ 'thumbnail' => 'Thumbnail', ...
0
votes
0answers
239 views

Magento 2 Image Cache Files are not Updating in Product Catalog

I'm currently experiencing an intermittent issue with my product images in my installation of Magento 2.3.2. Essentially I upload a new image to replace an existing image, the image updates in the ...