Correct thumbnail aspect ratio

  • Posts: 43
  • Thank you received: 0
12 years 10 months ago #42451

Hi guys,

I have just changed the thumbnails on a site from 200x120 to 300x180. I have deleted all thumnbail folders.

Now when I got to view a product I see a thumbnail which is 300x149 which is an incorrect aspect ratio and makes the images look stretched.

The main_image_thumb div has a height of 185px leaving a gap between the bottom of the actual image and the small_image_div.

www.vintageleathersofas.com/leather-sofa...ockley-4-seater-sofa

Any ideas on what I haven't set in order for the change to update properly?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
12 years 10 months ago #42452

Ah, I think I may have realised what's going on, it seems to have taken my largest measurement and kept the original aspect ratio of one of the images, and then resized the other to suit.

I'm going to have a play at changing the image size and see if that fixes it.

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
12 years 10 months ago #42463

OK so all the images are now definitely 1.5:1 aspect ratio (600x400) , all thumbnails were deleted, but they still show stretched. I'm out of ideas now.

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #42634

I can see that you have the CSS code:
.hikashop_product_main_image_thumb img {
height: 100px;
}

in the CSS file of HikaShop which forces the thumbnail of the product on that page to be 100px tall and thus renders with a wrong aspect ratio. You should remove that code and refresh your browser cache.

The following user(s) said Thank You: mrdexter

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
12 years 10 months ago #42635

Thanks Nicolas, good spot :-D

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum