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
18 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
29 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
16 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
26 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
67 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
58 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
22 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
53 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
148 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
26 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
18 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
15 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
16 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
34 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
23 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
12 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
223 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
560 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
77 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
242 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
29 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
93 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
823 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
55 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
65 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
40 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
19 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
25 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
263 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
77 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
248 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
326 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 ...
2
votes
1answer
829 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
77 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
171 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
14 views

Magento 1/2: Optimal size, resolution and weight for images in mobile themes (vertical and horizontal)?

Are there any indications of the most optimal size, resolution and weight for images that are meant to be used in mobile themes, specially for sliders, posts and in the homepage. I am talking about ...
0
votes
0answers
36 views

Magento 2.2.1 wysiwyg upload images AND broken in admin

I'm currently having issues with the admin area of my site. I'm trying to insert both images and videos via WYSIWYG. I've tried inserting an image via the insert/edit image option. I'm able to upload ...
0
votes
0answers
86 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
0answers
59 views

Magento 2 - Uploading Certain Images - Ajax 403 Forbidden

I have an issue where I am trying to upload images for the favicon and transactional email within the Magento admin. Some images I select upload as expected and show the preview, however some images ...
0
votes
2answers
31 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
0answers
96 views

Magento 2 - Protect pub/media images from direct access by URL?

I don't want a user to view images directly from pub/media/documents. I have one custom module which contains a simple form with image upload functionality. It is uploading image in pub/media/...
0
votes
1answer
119 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
283 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
636 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
256 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
34 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
374 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.
0
votes
1answer
75 views

Magento 1.9 : Moved from subdomain to public_html now wysiwyg problems

I have moved my magento 1.9 from a subdomain to the folder public_html. This is now for my primary domain www.mydomain.co.uk I have changed everything that needed changing, also now adjusted the ...