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 [image]

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

2
votes
1answer
1k 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
0answers
13 views

Show Block class image upload to Ui form image upload

How can i change from this To this My Code to create image upload is below. I don't want to create the form with UI component but i want to make the image upload like it. $fieldset->addField(...
1
vote
1answer
17 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/...
1
vote
2answers
58 views

Magento2 How to Integrate background image in my email template

I want to integrate a image in tag as background in style for my account creation email template. Where can I place this image in my folder and how can I call the image as background.
1
vote
1answer
12 views

How can I get full-sized image on swatch attribute? Magento 2.3

I added swatch images for my brand. I get swatch data in my template: $swatchData = $block->getSwatchData(); Next step - I show image inside my template: $swatchThumbPath = $block->...
0
votes
0answers
10 views

The gallery images repeated in PDP page

In My PDP page, the thumbnail images which is shown on the bottom side of the product image are displayed twice Please refer below screenshot, It repeats the product image twice in bottom
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?? ...
0
votes
0answers
454 views

Executing JS function onclick button which is present inside form

We have button "create" and onclick "Create" button, it will create product programmatically and assign custom image to that product. app/design/frontend/rwd/Theme3/template/aitcg - js_styles1.phtml ...
1
vote
2answers
4k views

Serve resources from a consistent URL

I'm working on optimizing our website & am getting this notice when using GTMetrix. The following resources have identical contents, but are served from different URLs. Serve these resources ...
0
votes
2answers
806 views

magento 2 : logo image file could not be selected / uploaded

In content > design > configuration theme , I try to upload new logo by click on the Upload button. However, after select the image from PC, the ajax icon only spin a couple of times and then ...
1
vote
4answers
12k views

Getting Sub Category Images in Magento2

I am trying to get at Category Images from within Magento_Catalog\template\navigation\left.phtml. This file shows a list of sub-categories. This is that file: <?php if (!$block->getCategory())...
0
votes
3answers
1k views

How to exclude product images programatically?

I want to mark some of the product images as excluded against some products. I tried this link http://www.magecoders.com/blog/2013/05/programmatically-exclude-product-images-in-magento/ so far. But ...
0
votes
0answers
31 views

Customize Image Tag

I am new to Magento. Currently, my site running on Magento 1.9.2.4. I need to integrate image CDN piio. For which I need to change img tag attributes. My current attributes are img src="/image/...
1
vote
4answers
151 views

Magento unable to add webp images to category thubmnail

I want to add webp images to category thumbnail, how can we do this, it gives below error on adding webp images "File validation failed."
1
vote
2answers
3k views

magento 2 The image cannot be removed as it has been assigned to the other image role?

I am using Magento 2.1.4 unable to remove the image, while removing it noticing "The image cannot be removed as it has been assigned to the other image role". how can i overcome this? I have searched ...
2
votes
1answer
65 views

Disable flush image cache button in the backend in magento2

Go to Admin > System > Cache Management I want to disable flush image cache button in backend given Which is highlighted in bellow image for security purpose. Can anyone give me solution. Thanks.
1
vote
1answer
23 views

Via block get custom type image or display default

I want to display my new product image type in my phtml. I use : echo $block->getImage($product, "custom_type_image")->toHtml() That work, but all my product didn't have an image with this type, ...
0
votes
0answers
11 views

How to gracefully handle image exceptions?

So I am having the same issue as what is talked about here. The images that are throwing the exception are broken, and I'm working on replacing them, but until I get them all replaced is there a way ...
-2
votes
2answers
5k views

display product label on “out of stock ” products [closed]

I want to display a product label "out of stock" in frontend for those products which are set out of stock in the admin panel. Let me know if you need any clarifications. Please help me to find a ...
0
votes
1answer
159 views

Which Image optimizer extension is good for version 1.9.1.0?

My site always gets an error of image optimization in PageSpeedInsights tool. I want to know if there is any provision of extension for the same or only code will help.
1
vote
0answers
16 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
vote
1answer
696 views

Please advise. How can I export all product images at once Magento 2.2.5?

I am having an product export issue with Magento 2.2.5. How can I download/export all of my product images (all at once)? They all are in different folders on server? Thanks!
0
votes
0answers
15 views

How to keep product catalog images the same size Magento 2

Having an issue with the image size in our product catalog pages, we are getting images in from feeds, but the vertically aligned images are coming out way bigger than they should be, as is shown in ...
3
votes
3answers
729 views

How to get product image path by product id in magento 2

Hello friends i want to fetch image path like var/www/magento/pub/media i wand to display image in admin grid i am using rendarar to get image image path by passing Product id. How this can be ...
0
votes
1answer
585 views

Magento2 - Get image url in model/helper

I have a helper class Email under vendor/module/model/helper/Email.php I have to access a image in the module_path/view/frontend/web/images I can't use $this->getViewFileUrl('vendor_module::...
0
votes
0answers
32 views

How to create custom module after installing Magento 2 Docker Image?

I have installed Magento docker Image and frontend, backend is working fine. The directory structure of Magento docker Image installed is: Now I am looking how to start my first module. I have these ...
1
vote
1answer
140 views

How to re-import products with existing images

I have accidentally deleted all product from Magento store (1100 items) but few minutes before that I did export all of them to the .csv file what let me to import them back but unfortunately there no ...
0
votes
1answer
28 views

Product image/button missing in Magento Admin only on my computer

Using: Magento v1.9.0.1 Browsers: IE & Chrome on Windows I'm having an issue where none of the images and the Browse/Upload Button in the product admin are displaying for some reason. (see image ...
0
votes
3answers
3k views

Magento 2: How to Get Subcategory Image in Category Page?

I want to display subcategory in category page with the image. I've to put below code get only subcategory name not getting the image. How to get subcategory image in category page? if($this->...
0
votes
1answer
56 views

Magento2.2.2: Module override cause in Wysywig editor shows broken image

I have to override the Customer module. vendor/magento/module-customer/Model/Indexer/Source.php in my custom module app/code/Magenticians/Moduleproduct/Model/Indexer/Source.php here is ...
1
vote
1answer
34 views

Magento 2 Change Minicart Product Image from thumbnail to regular image

After editing the minicart for a couple of days now i've noticed that the images are smaller versions of the images that you would see on the product pages. This means as i'm upscaling them to fit a ...
0
votes
1answer
40 views

Magento 2 How can I stop Google to index my product image and details?

I have b2b and b2c websites in my magento2 project. Is there a want to stop Google to index my product images and details in b2b website, I don't need SEO on b2b. How can I achieve this?
2
votes
0answers
68 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 ...
4
votes
1answer
683 views

Magento 2 want to add itemprop=“image” tag in image field

I want to add itemprop="image" to main image on product page. How can I achieve this.
4
votes
3answers
825 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 ...
7
votes
3answers
8k views

Getting a custom attribute image

Magento 2 question here: I've made a custom attribute (media type) with the name of 'bike_range_image', and tried googling and searching in the core and everything I could to get the image with a ...
0
votes
0answers
23 views

Magento 2 get third product image for related products

Related products are now showing the default image, How can I change it so that the 3rd image is displayed for every item in the related section? I have looked at $_product->getMediaGalleryImages()...
2
votes
1answer
60 views

Display custom image in admin edit form magento 2

How do i display custom image only in admin edit form .. But dont want choose file button code: $fieldset->addField( 'file_path','image', [ 'name' => '...
1
vote
1answer
697 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 ...
0
votes
0answers
38 views

Storing string larger than 65KB

I have a web call to an ERP system that contains a product's information including its image. All the information that I got from the web call is then stored to its corresponding repository. eg: Call ...
2
votes
0answers
68 views

Image slider for pwa studio

I have just started playing around with Magento 2 pwa studio. Now i need to add an image slider which I want to show in my pwa homepage. How i can add slider on pwa venia homepage any suggestions ?
0
votes
0answers
9 views

php7 update does not let me upar image in magento

after I did the php update for 7, and I changed the codes as in the article> How can solve error Magento 1.xx on PHP 7? -7 / 105604 # 105604 <, but in the last topic where the part of the checkout ...
1
vote
3answers
3k views

Missing files in /media/ - help on how to write a script that will regenerate based on .htaccess call?

I performed a complete cache clean and discovered that this obliterates everything under /media/ (as noted by me below and later correctly observed by an answer, it is indeed just the cache that is ...
1
vote
0answers
35 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 ...
1
vote
0answers
84 views

Not able to insert the images using wysiwyg editor in Magento 2.2.7

Not able to insert the image using WYSIWYG editor in page or block creation. Insert file and create folders buttons are not working. Help me fix this issue
0
votes
1answer
32 views

Magento Frontend Dashboard Stuck Loading

Magento 2.2.5 Attached are screenshots of the errors in Chrome dev tools: jquery.js loader.js Also: There are some images being requested that are missing from an S3 bucket that are throwing out ...
1
vote
0answers
35 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.
0
votes
0answers
12 views

How can I implement zoom effect on image that is display when custom option is selected

How can I implement zoom effect on image that is display when custom option is selected. Like when i select any color option in product detail page it overlay image of that color but it always have ...
4
votes
1answer
673 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 ...
2
votes
2answers
34 views

How to add Product image attribute in Magento2.2.5?

I have created Product image attribute in Backend in Magento2.2.5. Refer my screenshot But I am not able to see in Product detail page in Admin side. Is there any other way to do this or I am ...