Questions tagged [media-images]
The media-images tag has no usage guidance.
191
questions
0
votes
0
answers
15
views
Magento 2.4.3-p3 Storage Root Folders
We have a very strange issue on the 'insert image' page.
When trying to add an image on a CMS page and click the insert image link, the 'insert file' page doesn't load the media directories (folders).
...
0
votes
1
answer
20
views
Why are images loading slowly on my website?
Our company is engaged in the production of mobile loading ramps, our website is https://ausbaurampa.de we have encountered a problem with slow loading of photos on the site. What could be the problem?...
1
vote
0
answers
21
views
Magento 2: Product images are not generated in media cache on importing products
Facing weird issue for 2-3 days. Images are not showing on frontend Whenever I import new products using firebear module or default importer.
I tried php bin/magento catalog:image:resize, ...
0
votes
3
answers
97
views
Cannot create new folder under Storage Root - Magento Media Gallery
I get the attached error while creating a new folder under Storage Root. How can I fix this?? Is it not possible to create another folder under root
Edit
There were folders under StorageRoot that ...
0
votes
1
answer
95
views
How to run queue consumers
I want to use the media gallery image optimization.I read in the doc that I have to tun the media.gallery.renditions.update.
I tried with the next command
bin/magento queue:consumers:start media....
0
votes
1
answer
10
views
Issue on assigning base image, small_image, Thumbnail_image programatically using csv?
I have created a php file to assign the base_image, small_image, Thumbnail_image using below script.
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$state = $objectManager->...
0
votes
0
answers
49
views
Can't Upload Images from CMS Wysiwyg editor in Magento 2.4.2-p1
I can't upload any file format images from CMS WYSIWYG editor also uploaded images not display but I can access images direct from URL
I can upload products Images and categories etc just issue on ...
0
votes
1
answer
304
views
Media folders missing from admin in 2.4.3-p3 update
There are multiple media folders missing in 2.4.3-p3
I have read this --> https://developer.adobe.com/commerce/php/tutorials/backend/modify-image-library-permissions/
Does anyone know exactly where ...
1
vote
0
answers
143
views
Magento 2.3.2 > Some products images are broken and some are not loading correctly in frontend
I'm a new to magento and don't know much about magento, Recently I have installed a custom theme in magento2 and then some products images became broken and some are having images with src=".../...
0
votes
0
answers
108
views
Magento 2.4 Product Builder add class directly to images
I'm trying to add css class directly to Page Builder images. I want to disable lazy loading for those images.
I've successfully created new Theme for admin (theme is working for sure) but I can not ...
1
vote
0
answers
15
views
Magento 2.4.2-p2 change "Select From Gallery" root folder
Good afternoon all,
I am working on a site that has large amount of images (110k +) in the media folders. The media select screen opens and sits loading from storage root but I would like to set the ...
0
votes
0
answers
74
views
Products "X" and "Y" have the same set of attribute values
I'm doing something like this
foreach ($arrayItemsToReplace as $key => $item){
$product->getMediaGalleryImages()->removeItemByKey($key);
$product->...
0
votes
1
answer
143
views
How to confirm the working of Remote Storage with Magento Cloud?
I have successfully configured and synced the media files to the Amazon S3 bucket(as mentioned in https://devdocs.magento.com/guides/v2.4/config-guide/remote-storage/config-remote-storage-aws-s3.html) ...
0
votes
0
answers
131
views
Magento 2: How to display product image caption instead of product title below the image in product details page?
We want to replace product title/heading under product image with its caption(value in title attribute of IMG element).
The things that do need the captions are:
When clicking on another image in the ...
0
votes
0
answers
26
views
Unable to upload image - m2
Image size and format is valid but still not able to upload image.
Also facing same issue with category image upload.
Not gating any error in error log files and have proper permission to var, pub ...
0
votes
0
answers
25
views
Menu is not showing after upgrading 1.9.2.4 to 1.9.4.5
I upgraded Magento 1.9.2.4 to 1.9.4.5. After upgrading, top menu is not showing
Another issue is some images are missing. I copied all Media files properly. Now its showing magento placeholder
Now ...
0
votes
0
answers
347
views
Magento ver. 2.4.3-p1 - Product Gallery Image cannot upload; Error : Something went wrong while saving the file(s)
I cannot upload images for new products or existing ones. All will show the error screenshot below.
Also, when I check on DevTools the data-URL showing as below.
This problem only happens when I ...
0
votes
1
answer
281
views
Magento 2 How to Delete permanently Image folder from pub\media\catalog\product\cache?
Actually, I try to manually delete the pub\media\catalog\product\cache folder but when I go to the Product Page in the Admin Panel the pub\media\catalog\product\cache folder was Regenerated how to ...
0
votes
1
answer
819
views
Magento 2.4.3-p1 i can't upload images, The file was not uploaded
After upgrading from Magento 2.3.7-p2 to Magento 2.4.3-P1 I can't upload images, in Magento admin, I get this error message: The file was not uploaded
In var/log/exception.log file, i see this error:
...
0
votes
1
answer
310
views
How to assign same image for multiple products without creating different image directory
Heii new to Magento
I have product with same images for multiple products but after i upload products via csv it creates seprate image directory for the products in var/cache/
Not a developer but it'...
0
votes
1
answer
1k
views
How to save uploaded images in a custom folder of pub media in magneto 2?
I want to provide a provision for uploading an image the image, should move/save to the custom folder which I have created in pub/media please be specific while explaining the code it will help me a ...
1
vote
2
answers
264
views
Delete all images in pub/media/catalog/product not linked to any product
I am facing a website wich media directory size is 88 GB, and that is getting problems with the server and some processes. After analyzing the product date, I determined that in this directory exists ...
0
votes
2
answers
145
views
Magento 2.3 images in catalog_product_entity_media_gallery_value vs catalog_product_entity_varchar
When we update images programmatically, we see correct images in admin, but not in shop frontend.
Correct images are saved to catalog_product_entity_media_gallery.
But magento shop frontend shows ...
0
votes
2
answers
79
views
How do I switch product images from magento 1 to magento 2?
I'm trying to migrate the images from Magento 1 to Magento 2, and I detected that the images are inside the media folder in both Magento versions, but when I get the media/catalog/product directory ...
0
votes
1
answer
107
views
Magento 2.3.4 images 404 after caching. Reappear after flush catalog images
I have migrated from Magento 1. The migration seemed to go fine. Orders and products are in.
I have not installed any themes as I wanted to get it running on Luna before changing anything.
So the ...
2
votes
1
answer
338
views
How to upload media files in app/code/Vendor/Module/web/images directory?
How can I upload media files inside the "app/code/Vendor/Module/web/images" directory? I am creating a custom form page on the admin page. In that form, I have created an image uploader ...
1
vote
3
answers
1k
views
2.4.3 Page Builder 404 on Images from Media Gallery
I've just updated to 2.4.3 (which now includes Page Builder).
When using Page Builder to add images from the Media Gallery, the selected image does not display properly because the image src is ...
1
vote
1
answer
56
views
Which of these folders inside of the Media folder do not need to be migrated from Magento 1 to Magento 2?
Magento 1.9.4 --> Magento 2.4.2-p1
I have done the settings and data migration by using the Magento Migration Tool. I am now using FTP to download all folders and subfolders in the MEDIA directory ...
0
votes
1
answer
351
views
Best way to migrate Media Files after running the Magento Migration tool?
Magento 1.9.4 --> Magento 2.4.2-p1
I successfully ran the settings and data migration using the Magento Migration tool. Now I read up on how to transfer the Media Files over (product images) and ...
0
votes
2
answers
277
views
Change Localhost Image URLs to Live Site URLs
This is my first time asking a question so here goes. I have recently moved my Localhost magento 2 site to a live server. Everything works great but I have a problem and was hoping to find a solution. ...
0
votes
1
answer
386
views
Where are media attributes/roles stored?
I was browsing through the DB, trying to find out where the media attributes of product-media-gallery-items are stored.
For clarification: They are called "Roles" in the Admin-Frontend and &...
1
vote
1
answer
201
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
1
answer
2k
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
1
answer
1k
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
1
answer
93
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
2
answers
160
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
0
answers
2k
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....
2
votes
2
answers
2k
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
1
answer
40
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 ...
1
vote
2
answers
1k
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
1
answer
890
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
1
answer
297
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
1
answer
112
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
1
answer
104
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
2
answers
970
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
1
answer
457
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
2
answers
2k
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-...
1
vote
2
answers
1k
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 ...
1
vote
0
answers
166
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
0
answers
293
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....