Questions tagged [media-images]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 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
21 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 ...
1
vote
1answer
19 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
17 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
30 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
29 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
0answers
32 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
0answers
18 views

Alternative to Thai's S3 Extension for Magento 2

I've noticed Thai's S3 Extension for Magento 2 (link) is now archived and has some issues with 2.3. Is anyone aware of a module with similar or better functionality to Thai's S3 Extension? What I am ...
0
votes
0answers
32 views

Magento2 need to write a images script

We need to write a script run to determine which images are in use by catalog Magento (in the database), and which ones are not? If they are not referenced (uploaded before, but not in use now), we ...
0
votes
0answers
13 views

How to apply a single image to bulk product list?

I want to have the bulk of products use one single image, how to do that? Update attributes do not allow this. When I tried doing it via import the fields "_media_attribute_id _media_image ...
1
vote
1answer
32 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
0answers
22 views

Magento 2 - Load all cms page media

I'm working in Magento 2.3.3 and doing admin work and need to get information from the media that's available. So, for instance, I want to loop through the data and the media uploaded into the cms ...
0
votes
2answers
190 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
0answers
25 views

How to add view.xml in custom module for custom resource image in magento 2

I wanted to add view.xml in my custom module for custom image. I have used following approach : Create etc/view.xml <view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
22 views

Magento2 Rename multiple product images during import

I need to change the name of the product image during product import. I am using Magento 2.3 CE I would really appreciate any comments and solutions to this issue.
0
votes
3answers
160 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
19 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
33 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
0answers
35 views

Magento 2 Media library sort order

Anyone know how Magento 2 orders media in the media library? When I insert an image using the wysiwyg editor the media isn't sorted alphabetically so it's difficult to find the image. Anyone know how ...
1
vote
3answers
48 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 ...
1
vote
0answers
34 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
93 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 ...
0
votes
1answer
23 views

Product image twice on homepage : Magento 2

I have two image from different path but same image on homepage.Thats causing me low speed on gitmatrix.How to fix it.
1
vote
1answer
34 views

Copy media/catalog to magento 2

We are in one of the last steps of migrating to Magento2 and we only need to copy the media/catalog images to Magento2. I would like to know if I need to flush the image cache first before copying to ...
0
votes
0answers
28 views

Product Image attribute cannot assign to Configurable products

I have created 3 new product image attributes in Magento 2.3. Which can be assigned to the parent product of the configurable product but cannot be assigned to variations created. I need to assign the ...
0
votes
0answers
8 views

Images in Imagebrowser not shown in Magento 1.9.4?

When I open the image in browser on a CMS page for example, the existing or uploaded images are not shown. They are uploaded correctly and are also shown in the editor and on frontend, its just the ...
1
vote
0answers
55 views

Magento 2: Delete images of deleted products

I wanna know how delete the images + cache images from deleted products. I tried: https://magecomp.com/magento-2-image-clean.html https://github.com/hungersoft/magento2-image-clean https://github....
0
votes
0answers
10 views

Magento 2 Crop all the product image in same size

How to crop all the image in same size in magento 2.3 Currently my product image like this https://snag.gy/ZHAdNM.jpg
0
votes
0answers
38 views

adding multiple product images to rich-snippet structured data using getMediaGalleryImages()

I'm looking to add all media images to structured data for the product page. currently, it only adds one image to the structured data via 'image' => $this->getUrl('pub/media/catalog') . '...
0
votes
1answer
45 views

Magento 1.9 - How to show images label on product view page

I want to show product images label with each image on product view page.I found below code on product view page but it's not working. <?php echo $this->htmlEscape($_product->getImageLabel())...
0
votes
0answers
338 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 ...
2
votes
1answer
80 views

1.9.4 thumbnails not loaded correctly from .thumbs dir

... or "breaking already broken features - what is Mage_Core_Model_File_Uploader::getCorrectFileName() for?" M1 has a bug that thumbnails used in CMS blocks/pages (insert image button) are not stored/...
2
votes
1answer
179 views

Moving media files to S3 bucket on AWS

I want AWS CloudFront to be implemented on production for a Magento 2 site. i would like to know what changes are required to change the path of images and audio/ video files, to setup on S3 bucket. ...
0
votes
0answers
27 views

When creating products with POST, images Roles are not enabled (base/small/thumb/swatch), even after a following PUT

When I add a product via the Magento 2 API and then add an image, the image is added and shows up under the "Images and Videos" tab, associated with the correct product. However, none of the Image ...
0
votes
1answer
152 views

Gallery images returns 0 images for product page Magento 2

For one product I am getting gallery images 0. in gallery.phtml <?php $galleryImages = $block->getGalleryImages(); ?> gives me count 0. I checked it database table ...
0
votes
1answer
633 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 ...
2
votes
0answers
324 views

Magento2 - fastest way to save product after several calls to addImageToMediaGallery() method

We had several issues when trying to build a catalog for a customer using native Import/Export functionality. Unfortunately it seems Magento2 has some difficult to download & process cloudfront....
0
votes
0answers
21 views

How can we add Magento Media gallery support inside Image and Videos tabs in magento 2.2

Basically I want to add the Default Magento Media gallery Insert Image functionality https://www.screencast.com/t/A0yH5sVgUlUv inside images and video tab. By default magento does not have this ...
0
votes
0answers
24 views

Add image to background

I want to add images to the left and right margin of the product page and category pages. I have a look into this but can't find an exact way for it to work. I am using magento 1.9.3 Any help would ...
0
votes
1answer
204 views

Some of the webp images not loading Magento 2

Some of the webp images not loading. Showing 404 error. How to remove this format in Magento 2.
1
vote
0answers
75 views

Can't Upload Products images to DigitalOcean CDN?

I have Integrated DigitalOcean CDN with Magento2.2.7 version. I can get images from CDN successfully but when I am uploading product images then it is not uploading to CDN directly. Is required any ...
0
votes
1answer
165 views

Create symlink of magento 1 “media” folder

I need to create a symlink of my magento1 "media" folder on another disk of my server because I need to make space on current disk. In which way can I do this?
2
votes
3answers
106 views

{{variable}} not working in product description

<img alt="" src="{{media url="wysiwyg/my_image_large.png"}}" height="100" width="300" /> The previous code is included in products description. In frontend the result looks like this: <img ...
0
votes
2answers
250 views

Magento 2: Why Magento copy product images in pub static cache directory?

While I upload a image in Magento. Image path was like /001/21525-A-1000.jpg But Magento is rendering images on front-end from this directory: example.com/pub/media/catalog/product/cache/image/...
1
vote
1answer
115 views

Images with size larger than 1 MB give error - Magento 2.3

Is it normal for Magento in version 2.3.0 to fail me when trying to upload an image that is larger than 1 MB?
1
vote
1answer
36 views

Magento media duplicates images and swap when not needed

I have come across a strange issue. Whereby, on the products page magento creates duplicate images for each image from the "More views" gallery. I have located the relevant code to the file media....
0
votes
2answers
495 views

How to stop magento to generate all types of images in cache on page visit

I'm using Magento 2.2.5 and when we visit listing or product page Magento creates the various sizes of images in pub/media/catalog/product/cache/ directory which I don't need except some. I have ...
0
votes
1answer
586 views

Database Storage and catalog:images:resize

Newly uploaded images are not appearing on the Magento Front End when using Database as the media storage mechanism, in Magento CE 2.3. I have tried almost everything, including cache clean, flush, ...
2
votes
0answers
18 views

how can i add pagination in product images in admin?

how can i add pagination in product images in admin? any have idea about this.
0
votes
1answer
22 views

How to get Magento 2 product image on custom phtml by product id Without loading product collection

I need product image on custom phtml in magento 2. Product is collection is a array not object. I just want to product product_base_image , without loading product collection. I tried <?php ...