Questions tagged [media]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
127 views

Show a media attribute

I've created a media attribute, and now i'm triyng to display this attribute to my product view page. I've tried this code below: $hdr_img = $cur_product->getResource()->getAttribute('...
1
vote
1answer
48 views

image not storing Media folder

I uploaded image file name called !!!.png it stored in Database but in Media it stored file.png i don't know what is the problem public function fanbookAction(){ $img = ''.$this->...
1
vote
2answers
71 views

Can we apply no write permission on media folder in magento

Hello Guys i am using magento 1.8.1.0 version for the security point of view i want to put no write permission on media folder of magento.but it shows warning at the top of site. how to resolve this....
8
votes
0answers
3k views

Magento2 visual swatch won't change product image [closed]

Created a configurable product with 20 different colors in the configuration process. I added different images for each color variation but when switching from colors on the front-end the ajax script ...
8
votes
8answers
25k views

Magento 2 Get all product images in on product list page

In Magento 1 I've always used $_product->getMediaGallery('images') But in the source from Magento 2 I see $productImage = $block->getImage($_product, $image); echo $productImage->toHtml(); ...
3
votes
1answer
724 views

What is the usage of 'gallery' attribute and how it differs from 'media_gallery'

gallery is a default attribute which ships with Magento along with media_gallery, image, thumbnail and small_image. These attributes are grouped under Images. But what is the real use of gallery ...
1
vote
1answer
164 views

Product images are serving from different path in Frontend and Backend

Frontend Product images are serving from this path1 : media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/i/m/img24.jpg Backend Product images are serving from this path2 media/...
0
votes
1answer
887 views

Delete Image from Media Folder

insert action public function fanbookAction(){ $img = ''.$this->getRequest()->getPost('img'); if(isset($_FILES['img']['name'])) { ...
0
votes
1answer
971 views

giving 777 permissions for media folder

we are using custom import export for uploading the products. but when we gave 777 permission for "media" folder, than only it will upload the images. otherwise we will get error while uploading. ...
0
votes
1answer
45 views

Magento is adding strange value at the end of media files

I have moved Magento 1.9.1.0 from one domain to another. Everything works fine except media files, magento is adding strange numbers at the end of file end before file extension, for example: ...
2
votes
0answers
193 views

Add menu item to media library

I would like to add a menu item (in the admin panel) to a page which allows to manage pictures. I found some interesting code in app/code/core/Mage/Adminhtml/Block/Wysiwyg/ and in app/design/adminhtml/...
1
vote
1answer
461 views

Is it possible to move the media folder and its contents to a different server

I want my media folder to be placed in another server My server has low space. So I need it to be placed in another server. Changing the media Url is not working. Somebody suggest some idea
1
vote
1answer
3k views

Change media image directory path

I know it's not recommended but I want to upload product images to any folder in my web server's root directory instead of magento's media folder. <upload_dir config="system/filesystem/media" ...
2
votes
0answers
1k views

Magento 2 Add Image to product media gallery

I am using bacon-qr-code library to generate a png file containing the QR code of the product info, it is generated and i am using $product->addImageToMediaGallery() function, which creates a ...
0
votes
1answer
3k views

change image upload location

By the default Magento save the images to: www.domain.com/media folder i would like to change the location of the saved images to subdomain: images.domain/media I have made changes through the ...
1
vote
0answers
95 views

Second store not showing product images

On my second site everything seems to be working fine..except one thing, the product images! On the list and grid view from the category all images are being displayed, not a problem. However, when I'...
0
votes
1answer
117 views

Can i move/mount all media files to S3 bucket (or other) for saving space in my web hosting storage? [duplicate]

Since my web hosting is not scale-able and have not sufficient space for storing further images, i want to move all media files to external storage, is it possible? i have read this thread Magento ...
1
vote
2answers
4k views

Not able to upload image in admin-end by Insert Image button

I am not able to upload images in the admin-end by clicking "Insert Image" link in CMS block or CMS page. On Clicking Insert Image link the Media gallery popup appears. Then on clicking the browse ...
0
votes
3answers
75 views

Mediagallery images not corresponding with Sku images

I'm trying to get all the the different kind of product images from the Media-gallery (see code below). Product with the black-11 SKU is my black-product but it doesn't show that product image. What ...
1
vote
2answers
6k views

Using AWS S3 bucket to store media folder

I'm setting up a Magento site on AWS for the first time and want to use a S3 bucket with Cloudfront CDN. I want to store the media folder in an s3 bucket so that I can scale out the servers and they ...
0
votes
1answer
2k views

500 Internal Server Error on PHP Image Load

This problem happened all of a sudden after Magento was working for 2 years. When I load a page, a thumb.php GET request is made to load 6-7 images. Now most of them are loaded fine with a 200 ...
2
votes
1answer
2k views

Magento Media is Unsecure with SSL [closed]

I am having issues with unsecure media on my secured site. I have secured my website with a SHA-2 SSL, but whenever I go to my frontend, all of my images that I set up with {{media url="image"}} are ...
1
vote
0answers
257 views

Images not served over symlinks

I managed to create multiple store by using the subdirectory + symlinking method. Everything works fine except that images are not found! I made sure that I created a symlink for the media folder, and ...
2
votes
1answer
52 views

How to move filing structure from our magento web server to windows [closed]

I had a problem earlier where my images on local installation werent showing up. I found out that the problem was filing structure of our magento site. Its filing structure is case sensitive. When I ...
1
vote
2answers
2k views

Load JS, Media and CSS on subdomain

I currently load all my files on one domain. I thought it would be better to load all js, media and css content from a subdomain, like: http://media.domain.com http://js.domain.com http://css.domain....
2
votes
1answer
2k views

Magento add image to media gallery causing duplicate images with _1 appended

So I have a folder of images and a php array that has sku's for keys and an array of images i need to add to that sku's gallery as its value ...for example: ['A2052'] => ['tmp/A2052-1.jpg', 'tmp/...
3
votes
2answers
193 views

Why is magento delivering images as https on http site

I have a magento website with multiple stores. In the basic configuration we use https://exampleBackend.com as Unsecure Url and Secure Url because the backend has to be in https. On each store we ...
0
votes
0answers
669 views

Export all product media gallery paths?

We are currently working on a Magento Migration and have so far exported all products to CSV where our client has been making amendments so that we can import the data into a new version of Magento ...
0
votes
2answers
51 views

huge data with magento

My client having website in magento where users comes and creates a tshirt online. On each tshirt creation, there are 6 different images created using code and total 300 to 400 unique designs created ...
24
votes
3answers
14k views

Faster way to load media images in a product collection

TL;DR: How do I load the product images/gallery without loading the whole product? I want to load the images on a product. What I do in the .phtml $_popularCollection = $this->...
1
vote
2answers
738 views

Making custom blocks responsive

I'm using a responsive Magento theme but when I'm making a div or html block through Magento back-end it isn't responsive. I can hardcode it with mediaqueries but what is the easiest and quickest way ...
3
votes
2answers
2k views

Add new custom CMS template directive {{cdnmedia}}

I want to add a new CMS directive to render CDN media URL's just like the media directive: {{media url="wysiwyg/image.jpg"}} Will result in http://www.example.com/media/wysiwyg/image.jpg Now I have ...
1
vote
2answers
125 views

Cancel Media Synchronization

Once started, is there any way to cancel the Media Synchronization? I have a very large collection of files in the database and have again run out of disk space; Magento will happily continue ...
1
vote
1answer
543 views

add custom block just below media view more on product detail page

i want to add custom block just below media view more on product detail page, see below image :http://159.8.132.20/Untitled2.png i want to do it vai admin > category layout update or via mdoule : ...
0
votes
2answers
726 views

Add Video or some custom block below media on product detail page

I want to add Video or some custom tabs on product detail page , how can i do it via my module see screenshot : I got one tutorial link : http://www.atwix.com/magento/insert-blocks/ but what to ...
0
votes
1answer
132 views

Sample Data error

I'm trying to install Magento CE on Ubuntu 14. Everything is fine but when I go in the frontend I can't see the Sample images in the right way and when I try to click on links a Not Found error ...
1
vote
1answer
733 views

Changing Media Gallery Primary Image

guys so I'm just wondering how I can change the image that is used on my product listing page. I imported my products with a CSV import and used the Media Gallery attribute to display external images....
0
votes
1answer
697 views

Show attribute with type Media Image on category listing

I'm trying to show a link to the Base Image of a product. This attribute is a Media Image type and Magento doesn't hydrate this attribute on the category listing. I was able to make it available by ...
2
votes
1answer
2k views

Magento Not Deleting Image Files

I've built an image importer (due to some custom requirements on image name matching SKUs) and in it, I delete all of a product's existing images before importing new ones. My code looks like this: /*...
1
vote
1answer
2k views

How to set an uploaded image as 'Base Image', 'Small Image' or 'Thumbnail' with SOAP webservices?

I'm looking for a method in the API SOAP (v2) to set an uploaded image like 'Base Image', 'Small Image' or 'Thumbnail', but I can't find one. I've checked the methods in http://www.magentocommerce....
0
votes
1answer
745 views

Product images uploaded are in the cached folder with a different size. Why?

Just found this issue, and look forward to getting advice from you: For the product image uploaded via admin page, when it shows in the product page, or at home page, the source codes shows that it ...
0
votes
1answer
1k views

Images in /media/catalog/product/cache are created as root:root and hence give 403 errors?

Images in /media/catalog/product/cache are created as root:root. These images give 403 errors. What file creates these cache files, is it Mage.php? I have checked the root directory and all the ...
2
votes
1answer
1k views

How to get different image sizes in WYSIWYG editor?

I'm trying to get some responsive images working on my store using the srcset attribute and I figured one of the simplest way to do so was getting a large and a small version of the image in the ...
4
votes
1answer
5k views

Open Media Storage

To manage media on Magento I'm using the default Media Storage, but the problem for not-so-expert users is that "it's hard to find". Is it possible to open the Media Storage adding a button in the ...
1
vote
1answer
53 views

Uncompressed image location

Just a quick question on Magento file structure. I have a site where images are coming out too small and being scaled up. I've changed the resize to the correct size but the images are still not ...
3
votes
3answers
284 views

Upgrade scripts and media resources

I was faced with this issue before and didn't find a "one size fits all" solution. For an easier versioning I usually add content to a website using upgrade and data-upgrade scripts. But I'm faced ...
0
votes
2answers
183 views

Exluding images but not updating on frontend

I have an external script which basically gets a product and excludes all of the images. The script is really simple include('app/Mage.php'); Mage::app()->setCurrentStore(Mage_Core_Model_App::...
1
vote
1answer
313 views

Magento 1.9 - Media.phtml not showing on configurable products view page

I have recently been learning the ways of magento, and up until two days ago it was all going great, but then I started learning about different product types .eg Simple, Bundle, Configurable. So ...
1
vote
2answers
2k views

Observer (event hook) for media or images

I want to create a module that will hook events for images being added to products or vendors etc so that when it's saved and was already an existing image (image was being updated) - that it would ...
7
votes
4answers
13k views

The directory is not writable by server. Magento 1.9 on XAMPP

When I added an image above error display. How to change permission to add image for all ?