How do I make the image sizes a custom aspect ratio?

How do I make the image sizes a custom aspect ratio?

hollypie002
Tourist
16 0 1

Hi! I would like to make give the product images on my product grid a 5:4 aspect ratio without adapting the size of the images themselves (they are uploaded square). I would also like to change the ratio on the default product page so that it is also 5:4 rather than a square. Is this possible? Thank you!

 

IMG_0168.jpeg

Replies 12 (12)

shreyhweb
Shopify Partner
694 116 129

Can you please give us the store URL? Then we will able to find a perfect solution.

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
hollypie002
Tourist
16 0 1

Hi! Yes it’s patchandstick.com 

the password is patchandstick2025 

 

For example I would like to make this product listings image have a ratio of 5:4 rather than a square without cropping the image (it looks better as a square on the customer accounts page). Please can you help with the code for both the product page and the product collection pages? Thanks! 

shreyhweb
Shopify Partner
694 116 129

Thank you,

Do you would like to show the whole product image without scroll?  Am i right?

Like this:

shreyhweb_0-1735501022458.png

Thank you

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
hollypie002
Tourist
16 0 1

No sorry I would like to make all the images have a 5:4 ratio. For example this one is currently a square but I would like it to appear as 5:4 😊 Thanks!

IMG_0169.jpeg

shreyhweb
Shopify Partner
694 116 129

Ok, but i checked the size also in 5:4 of image but i think you want to cover both white space sides left and right.

Like:

shreyhweb_0-1735502120360.png

Right?




- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
hollypie002
Tourist
16 0 1

I would just like to crop the top and bottom please, not the right and left sides 😊   

shreyhweb
Shopify Partner
694 116 129

Like this:

shreyhweb_0-1735502910068.png

 

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
hollypie002
Tourist
16 0 1

Not quite sorry 😂 Maybe I’ve explained this badly. 
I would just like to have the option of scaling images to 5:4 in this drop down menu. 

IMG_0168.jpeg

shreyhweb
Shopify Partner
694 116 129

Oh.....ok got it. but You can do it by the custom code so is you have some knowledge of shopify liquid coding then you can make a option for it. And if you not have knowledge about the custom code then you need to hire a developer for do it this thing.

I hope you understand, If you want to any help then you can send message freely we will find a better solution about it.

Thank you

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
hollypie002
Tourist
16 0 1

Okay thank you - do you know where I can find a developer to do this? 

Dan-From-Ryviu
Shopify Partner
10712 2120 2238

Hi @hollypie002 

I'm a developer who can do that. Please let me know the collab request code of your store so I can help you.

- Helpful? Like and Accept solution! Or Support me: Buy Me Coffee ❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

shreyhweb
Shopify Partner
694 116 129

Sure, You can find on the shopify partners directory and select any certified partner for the development it's my suggestion.

https://www.shopify.com/partners/directory/partner

We are also on the partner directory. So you can proceed with us also. 

If you want to any help then we will always help you.

Thank you

Thank you

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com