[Skip to main content](#vessel-content)

#   Correct thumbnail aspect ratio

##

- **[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")**
- [![mrdexter's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1863-mrdexter "View mrdexter's Profile") Topic Author
- [ Offline](/forum/user/1863-mrdexter)

Less More

- Posts: 43
- Thank you received: 0
-
-

14 years 8 months ago [\#42451](#42451) by [mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")  *[Correct thumbnail aspect ratio](/forum/4-how-to/42451-correct-thumbnail-aspect-ratio#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&#95;image&#95;thumb div has a height of 185px leaving a gap between the bottom of the actual image and the small&#95;image&#95;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")* was created by *[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")*

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](http://www.vintageleathersofas.com/leather-sofas/premium-hockley-designer-leather-sofa/premium-hockley-4-seater-sofa)

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

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNDUxLWNvcnJlY3QtdGh1bWJuYWlsLWFzcGVjdC1yYXRpbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")**
- [![mrdexter's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1863-mrdexter "View mrdexter's Profile") Topic Author
- [ Offline](/forum/user/1863-mrdexter)

Less More

- Posts: 43
- Thank you received: 0
-
-

14 years 8 months ago [\#42452](#42452) by [mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")  Replied by *[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")* on topic *[Re: Correct thumbnail aspect ratio](/forum/4-how-to/42451-correct-thumbnail-aspect-ratio#42452 "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&#95;image&#95;thumb div has a height of 185px leaving a gap between the bottom of the actual image and the small&#95;image&#95;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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNDUxLWNvcnJlY3QtdGh1bWJuYWlsLWFzcGVjdC1yYXRpbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")**
- [![mrdexter's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1863-mrdexter "View mrdexter's Profile") Topic Author
- [ Offline](/forum/user/1863-mrdexter)

Less More

- Posts: 43
- Thank you received: 0
-
-

14 years 8 months ago [\#42463](#42463) by [mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")  Replied by *[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")* on topic *[Re: Correct thumbnail aspect ratio](/forum/4-how-to/42451-correct-thumbnail-aspect-ratio#42463 "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&#95;image&#95;thumb div has a height of 185px leaving a gap between the bottom of the actual image and the small&#95;image&#95;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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNDUxLWNvcnJlY3QtdGh1bWJuYWlsLWFzcGVjdC1yYXRpbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 8 months ago [\#42634](#42634) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Correct thumbnail aspect ratio](/forum/4-how-to/42451-correct-thumbnail-aspect-ratio#42634 "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&#95;image&#95;thumb div has a height of 185px leaving a gap between the bottom of the actual image and the small&#95;image&#95;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 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](/forum/user/1863-mrdexter "View mrdexter's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNDUxLWNvcnJlY3QtdGh1bWJuYWlsLWFzcGVjdC1yYXRpbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")**
- [![mrdexter's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1863-mrdexter "View mrdexter's Profile") Topic Author
- [ Offline](/forum/user/1863-mrdexter)

Less More

- Posts: 43
- Thank you received: 0
-
-

14 years 8 months ago [\#42635](#42635) by [mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")  Replied by *[mrdexter](/forum/user/1863-mrdexter "View mrdexter's Profile")* on topic *[Re: Correct thumbnail aspect ratio](/forum/4-how-to/42451-correct-thumbnail-aspect-ratio#42635 "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&#95;image&#95;thumb div has a height of 185px leaving a gap between the bottom of the actual image and the small&#95;image&#95;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")*

Thanks Nicolas, good spot ![:-D](/bigsmile.gif ":-D")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyNDUxLWNvcnJlY3QtdGh1bWJuYWlsLWFzcGVjdC1yYXRpbz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
