Questions tagged [media-images]
The media-images tag has no usage guidance.
192
questions
0
votes
1
answer
9
views
How to add roles in images of product with mysql database?
Is it possible insert not update (update is simple) image roles (base, small , thumnail) in catalog_product_entity_varchar table if in the table missing attribute row for the products images
0
votes
5
answers
2k
views
Images Import Successfully But Images Not shown - Import By Magmi?
How can I solve the error, images import successfully and images saved into catalog/product/desired folder, but images not shown front end backend. Images imported by using MAGMI.
1
vote
2
answers
1k
views
Flush static files cache on production mode
There is something about Magento2 that troubles me so much.
When I have a website on production mode and I need to make a simple image change how I can do it?
I thought changing the image via FTP ...
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
1
answer
21
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
1
answer
26
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
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 ...
0
votes
0
answers
25
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
3
answers
228
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 ...
1
vote
0
answers
25
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
1k
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.
0
votes
1
answer
175
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) ...
1
vote
1
answer
2k
views
Magento 2.3.0 product image cache resizing images
All my images are 1024X1024 HQ images. When magneto move the imaged to cache folder it resize it and make i get smaller images with white frame all around it (see images "before").
I try to fix it by ...
0
votes
1
answer
1k
views
Magento 2: Getting dynamic url of image from media browser in js
So I have been building an extension to allow me to insert images into the textarea block of blocks and pages with custom styles. I call the MediabrowserUtility and am able to get a long funky url ...
1
vote
2
answers
2k
views
How to show uploaded image in admin
I want to show uploaded image in admin form. I use this code to upload image in admin form.
$fieldset->addField(
'image',
'image',
[
'name' => 'image',
'label' => ...
0
votes
1
answer
182
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....
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
14
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->...
1
vote
1
answer
1k
views
I used Magento2.1.7 get error image "404 error: Page not found." about "pub/media"
My link is SSL HTTPS "https: //www.sample.com/pub/media/eby/tmpteone/store/images/bannerxinpin.jpg" ,picture can not loading on "pub/media/mypicture"
Get error "404 error: Page not found."
Can you ...
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-...
0
votes
1
answer
2k
views
magento 2 How to show Simple product images instead of configurable product images?
In Default Magento, For configurable product in product detail page product media displays images of configurable product by default,but i want to show simple products images in product media instead ...
0
votes
0
answers
68
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
403
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
177
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
170
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
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 ...
0
votes
0
answers
99
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
0
answers
154
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
28
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 ...
2
votes
2
answers
595
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
0
answers
26
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
401
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
3
answers
964
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
1
answer
314
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 ...
1
vote
2
answers
179
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 ...
0
votes
1
answer
932
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
2k
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
<?...
0
votes
1
answer
330
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
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....
1
vote
2
answers
291
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
169
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
85
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
140
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 ...
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 ...
2
votes
1
answer
366
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 ...
13
votes
3
answers
8k
views
How to delete unused images from my media folder?
I have more than 50,000 images in pub/media of products.
But there are so many unused images so I want to remove all images which are not associated with any product.
For Magento 1.9.x this can be a ...
1
vote
1
answer
60
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
403
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
301
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
3
answers
728
views
How can I move image in Magento?
I have a image, for example a\m\amding.jpg and I am replacing image file in database with v/o/void.jpg. How can I move file from a\m\ to \v\o and change her name from amding to void?
I want to copy ...