Questions tagged [media-images]
The media-images tag has no usage guidance.
192
questions
1
vote
1
answer
73
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
1
answer
587
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
2
answers
6k
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
0
answers
154
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
1
answer
322
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
1
answer
209
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
2
answers
116
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
1
answer
1k
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
1
answer
89
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
1
answer
452
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
1
answer
790
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?
1
vote
1
answer
2k
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
1
answer
3k
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
0
answers
291
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
0
answers
562
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
0
answers
136
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
2
answers
175
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
1
answer
346
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
0
answers
773
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?...
2
votes
1
answer
4k
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
1
answer
821
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
1
answer
145
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 ...
9
votes
2
answers
2k
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
1
answer
195
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 ...
0
votes
1
answer
498
views
Magento 2.1.7, 2.2.3 : wrong placeholder image url
I try created new product without image after that view in frontend the image url not true. I inspect element the url of image not true.
.../media/product/placeholder/default/image.jpg lost catalog
...
0
votes
0
answers
288
views
Include more than one media attribute in phtml
I want to add multiple media image attributes in my phtml template but if I use more than one then none of them show :(
I'm using the following:
$product = $block->getProduct();
$...
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
541
views
change of product image thumbnail color
i want to change the background color of product image on product page.as by default the color is white but can same be changed ?
we have cropped images but as per main image the background doesn't ...
1
vote
1
answer
616
views
Media image attribute bugged in frontend
Reposting my question from another forum:
I want to add a picture as attribute on product and category page but encountered a problem.
Using Media Image custom attribute type I could not display it ...
2
votes
3
answers
4k
views
Magento2 Add Media Gallery data in product collection
Index.php (Controller File)
$productCollection = $_objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$collection = $productCollection->create();
I want to ...
0
votes
1
answer
1k
views
Clean way to add media gallery images to product collection
I have to display small images of products loaded by collection. Problem is (I think it is), that products (coming from collection) by default doesn't containt any images within. I have tried ...
1
vote
0
answers
12
views
display images from cache folder, on new server of existing project
I am trying to setup existing Magento project on the local system and new server. I copied all files of the existing project and set it up the entire project. But, no product images are showing on the ...
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' => ...
1
vote
1
answer
76
views
How can i Bulk export Media/import files as Excel Sheet (Export only Name of all images)
How can i bulk export name of all images presented in the media/import fils in magento root folder?
Note : Is possible export via SSH
1
vote
3
answers
2k
views
Cant access images in /pub/media/customer
I have added custom attribute for profile image upload. Now when i access customer image on front end it shows 404 error and donot access images in this folder /pub/media/customer .
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
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 ...
1
vote
0
answers
16
views
Can I alphabetize the images in the media storage?
It is time consuming to search for images in the media storage files.
Can I alphabetize the images in the media storage files?
0
votes
1
answer
628
views
Magento 2 : Get image file from custom_option folder
I have a custom option of type file where I am allowing user to upload photo while adding a product to cart.
I am using the REST api to get the cart items. Below is the response for the same.
[
{...
2
votes
2
answers
279
views
Improve Speed of this function - delete product images
I have a Mage CE 1.9.3+ store that hooks up to an ERP. The connector has pushed duplicate images to every product (3k+) - so we now have between 20-50 redundant images per product.
I've written ...
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.
0
votes
1
answer
2k
views
How to link to images from a Javascript file
I have created a custom JavaScript file in a Magento 2.1.7 theme that serves a different logo depending on the month.
The .js file is in app/design/ inside the theme’s /web/js/ folder. The logos are ...
0
votes
2
answers
166
views
Fatal error: Uncaught TypeError
Related to this- Newsletter Checkbox on contact us page in magento 2
I am using magento 2.1.7 version. I created this module and it gives me error as:-
Fatal error: Uncaught TypeError: Argument 1 ...
0
votes
1
answer
30
views
some images not showing in Magento ver. 2.1.0
Magento 2.1.0
Porto theme
I have installed Magento 2.1.0 and the Porto theme. I have made no additional changes whatsoever except I tried to clear Cache and re-index (which I guess can't be done ...
0
votes
1
answer
142
views
If category has image then show if not don't
I want my categories to have the image above the content and the left column, whilst using 2columns-left.phtml and don't want an image placeholder showing if there's no image. So I need an if ...
2
votes
0
answers
68
views
Magento 2 Create Custom Field for Image Visibility same as hide from default page field
I want to create one more checkbox which set the image as default. If Image is set to default then only want to add one "default_image" class on the product image on listing page.
Any ...
1
vote
1
answer
77
views
Custom module redirected to home page
C:\xampp\htdocs\m1\app\etc\modules\Prasad_ImageSorter.xml
<?xml version="1.0"?>
<!--
/**
* @category Prasad
* @package Prasad_ImageSorter
* @author MaddyBoy
*/
-->
<...
0
votes
0
answers
154
views
CMS images alt and title tags
We have a Magento 1.7 with many images in CMS blocks, CMS pages and attributes (like description).
Unfortunately, a lot of these images don't have alt or title tags.
I want to run a script that would: ...
1
vote
1
answer
64
views
Can't Embed Image on Magento Product description page
Often this community is my destination for many issues. Recently we are facing an issue with our Magento 1.9.3 store after upgrading it from 1.7.x when we try to embed a picture or anything on the ...
-1
votes
1
answer
132
views
Problem with image on the main page Magento 1.8, Php 7.0
Migrated Magento from one server to another and update PHP from 5.4 to PHP 7.0. I have image inside a product page, but don't have images on the main page
Uncaught TypeError: Cannot read property 'fn'...