Questions tagged [media-images]
The media-images tag has no usage guidance.
192
questions
15
votes
2
answers
4k
views
how to save image custom attribute in magento 2
I need to display few images of product in frontend based on condition: use for virtual mirror should be checked.
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for ...
1
vote
1
answer
2k
views
Magento2 Blank category list page after migration
We successfully migrated a huge multi-store site from magento-1.9.3 to magento-2.1.6 last week using Magento migration tool. After migration, we notice that categories are not listing any products ...
1
vote
1
answer
513
views
Magento 2: Why some images aren't showing in Luma theme product page?
I've installed a Luma theme on my local and it is ok but when I open product page the images not showing.
The console gives errors like this:
GET http://localhost/m-2/pub/media/catalog/product//...
0
votes
1
answer
35
views
Magento : Pass Image Id to Another Product
We have Two product, First which has many images and second is sample product of that product. we don't want to upload same product images as first product already have that. we just want to pass that ...
2
votes
1
answer
66
views
What are the different parts of an image URL, and how to generate new sizes?
I have an image URL like this:
http://example.com/media/catalog/product/cache/1/thumbnail/65x65/9df78eab33525d08d6e5fb8d27136e95/r/a/random-product_8.jpg
What is the meaning of the "...
1
vote
3
answers
3k
views
Need to Update Product Media Gallery Image Label
I am trying to update the media gallery image label with product_id. I have tried different different codes but didn't get any chance to update the image label. Is there any way of updating media ...
1
vote
1
answer
196
views
products gallery not export in magento 1.9.1.0
I have exported all products from Import/Export >> Dataflow profiles.
but products gallery images are not exported in csv file.
Is there any setting in magento?
1
vote
0
answers
436
views
Broken images on the front-end when uploaded through WYSIWYG or Widgets
Is anyone else experiencing broken imagery on the front-end when uploading the image through WYSIWYG or widgets via the media gallery.
We find that the image shows for a short period on the front-end ...
1
vote
1
answer
124
views
catalogProductAttributeMediaRemove does not remove Image from the disk in Magento 1.9 CE
This is how we update product photos via SOAP sequence:
catalogProductAttributeMediaList
catalogProductAttributeMediaRemove
catalogProductAttributeMediaCreate
By calling SOAP ...
3
votes
3
answers
2k
views
Browse button is missing from media storage
I am trying to upload a photo into media storage.
but I do not have browse or upload button , it only allows me to see the photos already uploaded to storage.
1
vote
1
answer
356
views
Products not showing in catalog after media migration from magento 1.9 to 2.1
I just migrated my site from magento 1.9.2 to magento 2.1.5. The problem started after I copied the media folder. All the images showed, but all of the products in catalog and search disappeared - So ...
2
votes
2
answers
2k
views
Magento 1.9 : How to get Image label under the main image?
How can I get image "label" to print/output under the main image??
Need to display the Image label change according to the selection of the thumbnail image.
(e.g Front, Rear, Side etc)
0
votes
3
answers
3k
views
Images missing on front-end
I've been migrating products from Magento 1.7 to 2.1 using a series of scripts I've written.
The image migration stage appeared to work correctly - the images were copied into their relevant ...
1
vote
1
answer
2k
views
Product images returning 404 after updating Magento 2
I just updated Magento 2 CE from 2.0.7 to 2.1.5. I used the terminal method and all seems well. Everything is working and the new version is reflected in the bottom of the admin section. Only problem ...
0
votes
3
answers
1k
views
Magento Product image on Hover not working
I want to add a hover image for my product.
So the first step :
1- i've create a new attribute with code named hover_image for all types of the products.
2- in php file catalog->product->list....
1
vote
0
answers
35
views
catalog page product image is not showing the path for media is taking
I was trying to take media backup of my magento website from the server and deploying on my localhost machine but in the catalog page product image is not showing the path for media is taking from the ...
0
votes
1
answer
46
views
create a list of images related to product on product listing page
I want to show show a list of all product images of that specific product below description in a loop.
use Magento\Catalog\Model\Product\Gallery\ReadHandler as GalleryReadHandler; class Gallery
{ ...
0
votes
0
answers
63
views
Append SKU in media images name
I want to update each and every image name from product media gallery.
I want to append SKU in product name for example imagename-SKU.jpg
Any Idea how to append all existing images using ...
0
votes
1
answer
343
views
No Images Showing Anymore!
Ok so everything was fine and dandy on my machine yesterday, that is until I updated my magento to 1.9.3 and applied the security patch. Since then my images no longer show on the front or back end. ...
0
votes
0
answers
85
views
Why are my images being loaded as the Admin Login page?
I'm trying to fix an issue where a user is unable to save changes in the backend as they are being kicked back to the admin login page even though they hasn't been logged in long enough for the ...
0
votes
1
answer
226
views
im trying to add images and media to my pages but the browse button and upload are missing
i have more than 5000 products in my magento shop, since a week, all newls uploaded products dont have an image because of the missing browse and upload button. As well, under pages im trying to ...
0
votes
1
answer
884
views
Image is not setting as base/thumbnail after creating product programmatically
I'm trying to set product image while creating product programmatically(on server). The image which I'm trying to set as product image is getting uploaded after product creation but it is not setting ...
1
vote
1
answer
458
views
get product attribute on module-catalog/view/frontend/templates/product/image.phtml
I have created a new product attribute of media type with code img_hover.
Now I want to access it in the template file vendor/magento/module-catalog/view/frontend/templates/product/image.phtml
When ...
0
votes
2
answers
2k
views
magento image filename auto renaming
i sell products that come in variations. i upload image into media/import, and after the 1st product on csv file, magento create duplicate image file and renames it like below for the other products ...
0
votes
0
answers
47
views
Image in custom module grid
I created image attribute and also create image in media custom folder. While form submit i save imgae url in Database it's working fine. I want to show in grid how i show
my output
http://...
1
vote
1
answer
16
views
For each add white pace while featching media image
This My Code
$IsCustomizableColor = $_product->getResource()->getAttribute('customizecolor')->getFrontend()->getValue($_product);
<?php
$SplitColor = explode (',', $...
13
votes
3
answers
8k
views
How to delete unused images from my media folder?
I have more than 50,000 images in pub/media of products.
But there are so many unused images so I want to remove all images which are not associated with any product.
For Magento 1.9.x this can be a ...
0
votes
3
answers
728
views
How can I move image in Magento?
I have a image, for example a\m\amding.jpg and I am replacing image file in database with v/o/void.jpg. How can I move file from a\m\ to \v\o and change her name from amding to void?
I want to copy ...
0
votes
2
answers
1k
views
Magento2: Images showing broken.
I have a set of images that I would like to include in the product descirprion part... especially in the long description, however I am unable so.
I insert the photos and then save the page, after ...
3
votes
0
answers
172
views
adding media_image attribute sql catalog
$installer = $this;
$installer->startSetup();
$this->addAttribute(Mage_Catalog_Model_Product::ENTITY,'expert_author_image',
array (
'group' => 'Expert recommandation',
...
1
vote
1
answer
100
views
Magento2 : how can I call my theme images
I am trying to convert some M1.9 emails to M2 and it currently calls the images from
<img src="{{skin url="images/logo_email.gif" _area='frontend'}}
I've tried
<img src="{{view url="images/...
2
votes
1
answer
401
views
Can I delete media directories left over from an unused non-composer installed module in Magento 2?
I have been trying to clear space on my server (every little bit helps). I recently installed the FishPig extension and had no use for the Magefan_Blog module that was installed in my Magento 2 store....
1
vote
3
answers
482
views
CMS Images Not Responsive [closed]
I've added an image to my front page. It has no width or height defined in the image tag.
When I resize the browser window it is responsive until the window is mobile size and the menu disappears.
...
0
votes
1
answer
895
views
How to remove / rebuild product cache image with the help of product id?
I want to remove the particular product image from cache folder at the time of product edit from admin.
I need to change the product image when product getting edit and its working fine.
Now at that ...
7
votes
1
answer
3k
views
Magento 2 pub/media/catalog folder size too big
I have magento2 setup with ~6000 products and the size of the pub/media/catelog folder was 23GB,
Now suddenly it has increased to ~51GB and the server storage is started showing 100%.
I am not sure ...
1
vote
1
answer
2k
views
Use API rest media management by storeView code (admin)
I'm having troubles using the catalogProductAttributeMediaGalleryManagementV1 API rest for manage the products images in a multiple storeView project.
The main problem, is when I use the
POST /V1/...
1
vote
1
answer
1k
views
How do you link images set as backgrounds in your CSS file?
The situation:
My custom CSS files are located inside the web/css directory and the page is accessing these files just fine. I can see my styles in effect as they are being loaded.
The problem:
The ...
3
votes
0
answers
1k
views
Magento 2: Class BaseImage does not exist
Today we've updated from version 2.0.6 to 2.1.2, it was everything but flawless. But I've managed to fix all te problems except one:
When editing a product I receive this error:
Exception #0 (...
1
vote
1
answer
505
views
Issue in Inserting the image Media URL getting without slash symbol
I am using Magento 1.9.1.0. When iusing insert image in cms page.
Getting <img src="{{media url=" wysiwyg in_en 2016_pro_-22.jpg"}}" alt=""/> .
it shows without slash symbol.
Base URL www....
1
vote
0
answers
265
views
Magento 2: Is there a dedicated folder for keeping PDF/image files for CMS pages and/or products?
Since Magento 2 has a default folder for storing images to be imported at [magento installation folder]/pub/media/import, does Magento 2 also have a dedicated (or recommended) folder for storing PDF/...
1
vote
1
answer
2k
views
Magento 1 - Storing media files in the database
I am wondering if anyone can provide an insight into how the config to store media files in the database works. A question I have is - there are many different types of media files. CMS, product ...
1
vote
3
answers
2k
views
Magento 2 : Call Static block wysiwyg images not using editor
Any one have idea for how to call images in Static block not using editor like {{media url="wysiwyg/demo.jpg"}}?