I have created a card that contains a square image, a product title and a price. I’m using a frame to contain them all and auto layout to keep the text in place. I want to know if there is a way to ensure that the square image stays square when responsively resized?
Responsive square images
Best answer by Rachael_Raghuram
Hi Kim, Thank you for your reply. Appreciate your help with this, it’s been driving me bonkers! I want the image to dynamically change, but it must remain in its square format. I don’t want the image to become rectangular in anyway – which is what seems to be happening.
For example, I have created a product card for a category page. Dropbox - Unknown-2.png - Simplify your life
When I increase the size of the overall card (holding down shift and dragging the bottom right corner handle) I’ve set the constraints up to resize the objects accordingly, but the image doesn’t not maintain its square ratio. Is there a way to do this?
Many thanks,
Rachael
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.