Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [media-images]

The tag has no usage guidance.

0
votes
0answers
13 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
32 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
25 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
132 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
15 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
20 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
46 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
21 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
55 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
77 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
110 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
28 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
124 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
268 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
32 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
29 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
19 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
42 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
29 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
16 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
289 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
561 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
96 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
312 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
31 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
124 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
1k 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
65 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
76 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
52 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
0answers
29 views

performance considerations for re-sizing product images

I've been tasked with resizing the product images used on an old Magento 1 website for 400px*400px  to  600px*600px. In their custom theme they are adding the image with... <img src="&...
0
votes
2answers
27 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
328 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
83 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
40 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
275 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?
0
votes
1answer
396 views

404 Error when accessing image in pub/media

Ive been struggling with this for a few weeks now and dont seem to be getting anywhere. I have installed a module that reads images from a directory 'pub/media/import' however when I navigate to the ...
3
votes
1answer
1k views

What is the use of the view.xml of theme etc directory

I found this file located in the app/design/frontend/Magento/luma/etc/view.xml Can we depend on this file to make change to the image resolution? Any other specific use of this file. Shall we put ...
1
vote
0answers
95 views

Magento 2 API : Images are not showing on frontend

I am using below api for upload images for all store rest/all/V1/products/".$sku."/media/ but images are not saving for all store.Images are showing in admin only. here is the code i am using to ...
1
vote
0answers
203 views

How do I link to external images on Magento 2?

I have an external dynamic image server. I would like to link directly to these external images and not upload to Magento's media library. I cannot seem to find any setting and/or extension. It ...
0
votes
0answers
94 views

unable to insert images and use wysiwyg properly

i am working on magento website which is based on magento 1.9. all of sudden am facing a wierd issue that wysiwyg editor is not working properly as when am trying to insert any image same is not ...
0
votes
2answers
35 views

anchor tag define for specific image in slider ? magento2

I have purchased a theme from magento2 marketplace , i have a code for images slider on my homepage , i wants to a define an anchor tag for one specific image like this <a><img> ...</a&...
0
votes
1answer
128 views

The template can't render images and blocks

In the frontend, the images URLs and blocks are not rendered. only show strings like this, and I don't know how to modify a template to render that. {{media url="wysiwyg/1S-Shine-2.png"}}
0
votes
0answers
307 views

Magento 2 REST API search in Product Media

I try to find all media IDs of one product with the position number 1 in HOST/rest/all/V1/products/SKU/media Everthing I can read tells me to use this: GET HOST/rest/V1/products/SKU/media?...
0
votes
1answer
767 views

Magento 2 REST Api POST Picture / Media

I am trying to POST to 192.168.2.153/rest/V1/products/{MYSKU}/media I used several online picture to BASE64 converter to convert to BASE64. The first line looks like data:image/jpeg;base64,/9j/...
0
votes
1answer
298 views

Linking to pub/media from Extension

I'm trying to link to pub/media product images from inside an extension's .phtml so I can reuse them rather than duplicate them inside the extension. I tried... <img src="<?php echo $block->...
1
vote
1answer
37 views

Product Page Doesnt Display if media image attribute is empty

I have created some media image attributes to show in a couple of places on the product page. They work fine if an image is selected for each of them but if not the page doesnt load correctly it ...
0
votes
2answers
450 views

Hide small images on frontend Magento 2

I have Magento 2 and want to hide small images of the product that is added from the admin on frontend. I have hidden the small image attribute from admin but want to hide it from front-end as well.