- Posts: 43
- Thank you received: 0
Correct thumbnail aspect ratio
14 years 6 months ago #42451
by mrdexter
Correct thumbnail aspect ratio was created by mrdexter
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
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.
14 years 6 months ago #42452
by mrdexter
Replied by mrdexter on topic Re: Correct thumbnail aspect ratio
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.
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.
14 years 6 months ago #42463
by mrdexter
Replied by mrdexter on topic Re: Correct thumbnail aspect ratio
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.
14 years 6 months ago #42634
by nicolas
Replied by nicolas on topic Re: Correct thumbnail aspect ratio
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.
.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.
14 years 6 months ago #42635
by mrdexter
Replied by mrdexter on topic Re: Correct thumbnail aspect ratio
Thanks Nicolas, good spot
Please Log in or Create an account to join the conversation.
Time to create page: 0.157 seconds