3

I have one image for all three small, base and thumnail.

However, when I am uploading a product , and selecting three options, magento automatically takes this as 2 image URLS in 2 different folder for a single product upload.

Can anyone advise how to assign single image URL in magento for a product.

Below is the URLs for single product upload For ex: http://www.akkoda.com/media/catalog/product/cache/1/small_image/300x/17f82f742ffe127f42dca9de82fb58b1/A/K/xAK102.jpg.pagespeed.ic.a5_c7F3nFd.jpg

http://www.akkoda.com/media/catalog/product/cache/1/thumbnail/300x/17f82f742ffe127f42dca9de82fb58b1/A/K/xAK102.jpg.pagespeed.ic.a5_c7F3nFd.jpg

Mohit Rane
2,0001 gold badge18 silver badges52 bronze badges
asked Apr 29, 2015 at 13:08
3
  • Magento is resizing the different sizes (small, thumbnail, ...) as a form of cache instead of always showing the full image and let the browser resize it on screen. It is normal for any webshop to do this in this way to reduce file transfer sizes. The obvious side effect is that you would have multiple image URL's, one for every size... Commented Apr 29, 2015 at 13:30
  • Yes, you are correct, but when I am checking my webpage speed in GT metrix. it shows only few images needs to Serve resources from a consistent URL which means how others product are not shown in that report. I am bit confused how to overcome this "Serve resources from a consistent URL" Commented Apr 29, 2015 at 13:54
  • Please check the answer on this page magento.stackexchange.com/questions/31137/… Commented Jul 12, 2016 at 13:41

1 Answer 1

0

The problem appears when you have a product with only one image assigned to all placeholders (thumbnail, small image, base image) and you call two of that images to switch when hovering with the mouse. An easy fix would be to have at least two different images per product assigned to different placeholders. The not so easy fix is to edit the phtml files that load the product images in catalog view, determine if the product has just one image and then load only once if that's the case.

answered Jul 16, 2019 at 11:48

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.