Questions tagged [media-images]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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
14 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
21 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.
0
votes
1answer
14 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
26 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
7 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
29 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
5 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
13 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
27 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
32 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
42 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
61 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
18 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
63 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
174 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
198 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
17 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
21 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
85 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
40 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
93 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
87 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
179 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
31 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
279 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
440 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, ...
0
votes
0answers
37 views

Magento 2 images and videos in custom module

I've been following some instructions here: magento 2 how to upload images and videos in custom module I am facing a blank page with Add Video button see screen shoot: I am not sure what could be ...
0
votes
0answers
37 views

How to add image roles store-wise to already added image programmatically

I am running a website with 2 store views, and 1 website. I have products where images are already added. And image roles are assigned on "All Store Views", but roles have been deleted by the admin ...
2
votes
0answers
16 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
20 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 ...
0
votes
0answers
50 views

Magento2: Media folder issue

I have sync all media on s3 with cache folder. Image Url getting from S3. Image showing properly on the website. But when I delete folder into media from the local server then image not showing on ...
0
votes
0answers
38 views

Show media image that is NOT base, small_image or thumb ? on product view page

Steps to reproduce : 1) go to admin, create a product and add two images and set roles as a) base image b) small image or thumbnail 2) now go to product page in frontend , reload the url. you can ...
0
votes
0answers
19 views

Using product api to upload video but deletes the product custom image roles

I am using api call = rest/all/V1/products/sku/media to upload video to a product but it deletes custom image roles. Can anyone please help me out.Thanks in advance.
0
votes
0answers
382 views

How to change sort order of image gallery in Magento 2?

i'm using magento 2 defualt image gallery. I'm trying to change to sort order of image. I need this active image to come first in the left image sidebar. public function getGalleryImagesJson() {...
8
votes
2answers
565 views

Unable to see the actual images in the back end

Magento 1.9.1 Porto theme We had to have our hosting company do a full restore. Now most things work except for when going into the images tab in the Admin panel: it shows the BROWSE FILES and ...
0
votes
2answers
28 views

Uncompressed Cache images

I have a magento store. i did a pagespeed test using "Google PageSpeed Insights" for my home page. In the recommendation google gave me some come cache images to compress. But sonassi image ...
0
votes
0answers
137 views

Product's Images' URLs are not same after migrating from Magento 1.9 to Magento 2.2

I have migrated Magento 1.9 to Magento 2.2.2 using magento-migration-tool and after that, I have updated an image of the product which I have also update in Magento 1.9 but both images have different ...
2
votes
1answer
397 views

Magento2: How to get images inserted in custom theme's media folder?

I'm trying to get image which is inserted in /app/design/frontend/Mytheme/themename/media folder using following code but it's shows 404 not found. I have also apply cache clean & static content ...
1
vote
1answer
32 views

Product Pictures (Align)

I have images that are not aligned despite a Python script I've created that Trims and Resizes the images (works on Watches and Jewelry and other standardized items). This is happening when items like ...
1
vote
1answer
212 views

How to bind the image in ko template

I have image tag in phtml file .. And also i got the value of images and media url from ajax call . How to bind it like that in ko template <img alt="<?php echo $sizeGuideImage->getAlt() ?&...
2
votes
2answers
2k views

Cache issue (Images not loading)

Despite best efforts, I have images in cache that aren't loading, primarily because they are not present in the cache directory. I have tried clearing the media images cache. Short of deleting all ...
1
vote
0answers
76 views

Can you rename product image filename via Rest Api?

I'm trying to rename product image via rest API. So far I got the error Cannot save product on PUT /V1/products/{sku}/media/{entryId} Here is roughly the last thing i tried { "entry": { "...
0
votes
1answer
116 views

CMS Image Padding - Magento 2

Have added two images to same line, they auto fill the width - but how can I remove the padding between the images? And remove the "line break" so I can have e.g. 4 images (2x2) without any padding ...
0
votes
1answer
67 views

Magento 2 model for adding images to media folder (not for products)?

When not working with products, is there a magento2 model/function that can be used for reading/writing images to the media folder? (like addImageToMediaGallery / getMediaGalleryProcessor()->...
0
votes
2answers
30 views

How do I upload images to a slideshow in Magento 1.9?

I asked my developer to send over a tutorial on how to upload pictures and banners to the slideshow, and I am not seeing the same information he is. When I get to the area where I need to browse for ...
1
vote
2answers
472 views

Magento 2 : Image scaling Magento

Is there any way to serve scaled images? Specially, when images are already uploaded like product images or some CMS page images. I'm not looking for some solution that will scale images one-by-one. ...
1
vote
1answer
86 views

Help with product images generated in cache

I have added clear, higher resolution images in admin panel but don't know why the images looks a lot transparent in front end. URL: store.enconnex.com Please help.
0
votes
1answer
42 views

Can't center images in column

Magento 2 (2.1.10). I can't get my images to center within this block. I have three columns. I want the left column to have centered text and images. <style> .column { float: left; ...
1
vote
1answer
308 views

Magento 2 : When you upload a thumbnail or category image in Magento 2 where does it go?

I am trying to find the filepath for where a category image or thumbnail goes after being uploaded in admin. Can anyone point me in the correct direction?