Questions tagged [image]

Denotes questions about image processing, importing, upload and management.

244 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
1k views

Magento 2: insert products images alt tag programmatically

I need to insert ATL tag for catalog products images programmatically. Is there any way to do it?
6
votes
1answer
942 views

Watermark Category Images with Brand Logo

I'd like to add a watermark to each small image (but only in the category listing page) that is based on the manufacturer attribute. I don't want to alter the small image for that product on other ...
5
votes
1answer
3k views

Magento 2 - Unable to resolve the source file for image

I have created an image and have uploaded this to my theme/web/images folder. I have then ran the following: php bin/magento setup:static-content:deploy However I cannot get the image to show on ...
4
votes
1answer
324 views

How to check image dimension on upload?

Building a custom module and would like to have this option implemented so user will not be able to upload image if the width and height is not as specified. :P Found this example: public function ...
3
votes
0answers
45 views

Magento 2 I have added the custom field in the product attributes field but that not get save value at edit time in product attributes form

I have add the custom text field at the stores->attributes>product in form field that save into database but when i return edit that attributes that value not set at the edit times. Here is the ...
3
votes
0answers
195 views

get.php in server logs - security issue?

I noticed multiple hits per day on get.php in the access logs of a Magento 1.14 store, resulting in PHP errors and a HTTP 500 response. Some of them have bot user agents like facebookexternalhit/1.1 (...
3
votes
1answer
1k views

Magento 1.9: Custom category field for an image not showing on front end

I want to add a picture on top of category name in frontend. I tried creating a custom field for the category and adding a picture that way. I can see the custom field from admin, but I can't see ...
3
votes
0answers
939 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 (...
3
votes
2answers
2k views

Custom widget image is not showing on frontend Magento 2

I have a custom widget with an image uploader. Backend is working perfectly, but uploaded image path is showing like this http://db7005.web49.ixl.nu/achterkant/cms/wysiwyg/directive/___directive/...
3
votes
3answers
386 views

What are the possible Argument Namespaces for Logos

I am tweaking my theme using the xml approach. I have this xml code: <referenceBlock name="logo"> <arguments> <argument name="logo_file" xsi:type="string">images/my-...
3
votes
2answers
2k views

How can we add/update a image path with own code without using addImageToMediaGallery()

Can we update a own defined product image path to database, I am adding products with own custom code.I want to add image database without help of ->addImageToMediaGallery() Is it doable?? ...
3
votes
3answers
1k views

Magento 1.9.2.4 File Was Not Uploaded

Hey, I just installed Magento 1.9.2.4 and try to upload new product all goes well but when I try to upload image it uploads to 100% and then I am getting " File was not uploaded." error. Could ...
2
votes
0answers
358 views

Image upload error, unable to upload images in magento 2

Need a solution tried checking uploader.php for file extension MIME type. <?php /** * * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace MGS\...
2
votes
1answer
281 views

Magento 1.9.0. getimagesize(): Read error!

Does anybody know: 2019-02-21T19:45:40+00:00 ERR (3): Notice: getimagesize(): Read error! in /pub/app/code/core/Mage/Catalog/Model/Product/Image.php on line 221 2019-02-21T19:45:40+00:00 ERR (...
2
votes
0answers
164 views

Magento 2.3.0 unable to insert images in tinymce content

I notice that I couldn't insert images when adding products in tinymce content part. When I click on Insert Image button, I saw error as image below I granted access to /media directory 777. I ...
2
votes
0answers
70 views

Change image cache directory

Is there a way to change the directory that M2 uses as image cache to something other than /pub/media/catalog/product/cache ? I'm using Magento 2.2.3 at the moment.
2
votes
1answer
463 views

How to create a dynamic generated admin fields with Image upload?

This is XML : <field id="threesegmentimages" translate="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1"> <field id="threesegmentimages" ...
2
votes
0answers
60 views

Configurable child products without image

I have one problem. I am using since a time a new theme, the problem is that when I select a size in a configurable image, don´t shows any image, shows the placeholder image of Magento. The theme ...
2
votes
0answers
19 views

Do not display site photos magento1.9.3

I installed a theme but they will not be loaded after installing the site's photos.
2
votes
0answers
1k views

Brand store Logo not showing in email

I have configured the concerned brand logo to the store theme under the Email Transaction section After saving the configuration, I flushed the cache and re-indexed. Then I created a customer, with ...
2
votes
0answers
176 views

Placeholder image not resized in Backend in magento 2

I have uploaded place holder images in backend, while I am trying to edit the configurable product in backend. Under configuration section It displays the place holder image at larger size for each ...
2
votes
0answers
793 views

How to Change Magento Media Path?

Is it possible to change the image source path in the media folder: From: www.example.com/media/catalog/category/apple-iphonex.jpg To: www.example.com/apple/media/apple-iphonex.jpg
2
votes
0answers
259 views

How to Display child product image for configurable product in Magento2?

I want to display child product image (which has lowest price) as a configurable product image. So if I go to configurable product view page then by default lowest price product image will display? ...
2
votes
0answers
36 views

Product image import through csv throws required sku error

Ive multiple images for single product and Im trying to import it through csv as shown below. when I`m importing this csv file it gives me required sku error. So am i missing something here or my ...
2
votes
1answer
258 views

Product images are not uploading while saving

Product images are not uploading while saving the products. This happens only when I try to update the product. After trying to save the image, it throws an error and says, Update with id "0" does ...
2
votes
0answers
50 views

Individual Image for Grouped Products Magento 2 Ultimo Theme

Please help. Not able to see the individual photo for grouped products. Only appears in the cart but not the product page.
2
votes
0answers
319 views

Read csv and add image in category Magento 2

I tried this code but i could not upload image <?php use \Magento\Framework\App\Bootstrap; include('app/bootstrap.php'); ini_set('max_execution_time', 36000); ini_set('post_max_size', '5000M'); ...
2
votes
0answers
65 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 ...
2
votes
0answers
126 views

How add image to sales_order_grid in magento 2

I need to add custom image into sales_order_grid for each order. when checkout, I need to get custom image and stored to sales_order_grid for each order. I know add custom column to sales_order_grid ...
2
votes
0answers
466 views

AbstractFieldArray with Image Upload

I have an issue with getting the AbstractFieldArray class to work with an image upload for Magento Backend. Basically I have a settings grid with 4 columns. 1 of them contains a dropdown field, the ...
2
votes
2answers
535 views

Magento 2 : Hide Product Images Using Database

I have migrated my products from Magento 1 to Magento 2. How to hide bulk product images? For example, I have product with 4 images found on backend, I want only one product will display on frontend. ...
2
votes
1answer
47 views

How to Refresh image shown in home page by static CMS with same name and location

I have a CMS block that shows three images, top.jpg, mid.jpg, and bottom.jpg. The CMS block contains: ..and so forth.. My idea was to keep the same names so someone in charge of the ...
2
votes
0answers
291 views

Magento 2 image helper with category image url

I want to use helper for category image. Right now I,m getting category image like this : $image = $cat->getImageUrl(); But I want to keep frame to false so how can I do it with category images?...
2
votes
0answers
216 views

Image in widget magento 2.1

I follow this for add an image uploader in widget https://gist.github.com/cedricblondeau/6174911fb4bba6cb4943 But i get an js error "Uncaught ReferenceError: MediabrowserUtility is not defined" Any ...
2
votes
4answers
824 views

product image missing from backend after updating

After upgrading to Version 1.9.2.3 will not product images are displayed in the backend only in frontend. All run on a single web server with the same rights on apache user. Someone who can help?
2
votes
1answer
116 views

Magento image to permanently display by external url

My client's site is using Magento version ce-1.9.2.0. Now he wants the product's(and probably category's also in future) images to be fetched and displayed by external URL instead of traditional way ...
1
vote
1answer
35 views

Magento 2: Cart product image shows 404 error in new products

I have uploaded some new products to my store, and when I add some of the new product to the cart, the images are not seen: And this happens because the image are not generated in pub/media/catalog/...
1
vote
0answers
83 views

Magento 2.3.4 image save error

After updated Magento to v2.3.4 getimagesize('/var/www/project...') called at [vendor/magento/module-media-gallery-synchronization/Model/CreateAssetFromFile.php:78] Magento\...
1
vote
1answer
74 views

Thumbs not showing in 'insert file' in admin

For backend - both in the 'Media Gallery' and 'insert file' the thumbs are not being shown. Broken links are being shown. I have tried resetting all the file and folder permissions - no change I ...
1
vote
0answers
33 views

Magento 2 system configuration image file upload into my custom directory with the size validation

I am working a Magento Extension, as per my requirement I've to upload an image from the system configuration field. I have done the image upload, once the image uploaded the file stored in (root/pub/...
1
vote
0answers
64 views

Second product image on category page

I'm trying to display second image of a product in a category page on hover. I managed to get images by $_product->getMediaGalleryImages() but I have problems with resizing them to ...
1
vote
1answer
40 views

Magento 2 - Dynamic Product Image Magnifier

I want to add magnifier with settings of top position,left position ,width and height to setup and show magnifier accordingly to settings when hovered on image.
1
vote
1answer
15 views

How do I add images to custom theme

I need to add an extra, static image in the page header. Right after the logo. My child theme directory structure in [magento project root]/app/design/frontend/My_Vendor/My_Theme/ ├── ...
1
vote
1answer
74 views

Magento2 System configruation

I upgraded my magento2.2.8 to 2.2.3 after that I open system configuration and try to open configuration but some configuration shows a blank page and some option showing normal.
1
vote
0answers
41 views

Magento 2: Upload image without Ui component

how can I upload an image by this way, please help me, thank you $fieldset->addField( 'image_field_name', 'image', [ 'name' => 'image_field_name',...
1
vote
1answer
35 views

Programatically Product Save with Image

This is My File Uploader in .phtml file : <input type="file" id="imageUploader" name="imageUploader"> This my PHP file code where form post. <?php namespace VendorName\ExtensionName\...
1
vote
0answers
55 views

the number of images in Magento store

How many images I can upload for one product in my Magento store? I want to know the maximum number of images per one item. It's really important for my clothes store
1
vote
0answers
376 views

Magento 2 REST API copy image from another SKU

I am trying to use an existing image from one SKU and add it to another SKU. For example: SKU0 -> Image uploaded via Admin SKU1 -> Copy image details from SKU0 to SKU1 via API I've tried using ...
1
vote
1answer
136 views

how to solve configurable product image adapter error in magento 2.2.6

I'm getting error in magento2.2.6 on frontend for configuration type product Exception #0 (InvalidArgumentException): Image adapter for 'SLGD2NEW' is not setup. also command not working bin/magento ...
1
vote
0answers
124 views

How to make left/right arrow appear only when hovering Magento 2 base image in gallery

I want to remove left and right arrow when first accessing the product page. By default it was set to appear even when not hovering base image in image gallery. Since it has that overlay effect around ...

1
2 3 4 5