Reply 114305 to: Suggestions and proposals for Royal Theme

Avatar: sotart
sotart
Participant
February 22, 2016 at 23:21

I have an issue that might be corrected in the future. I am sending you a few pictures as a reference (http://imgur.com/6FcaXpB).
You will notice that there are two types of paintings on the website, landscape & portrait sizes. Let us assume that (image “limits”) we have an area (lets call it limit area) in the single product page which has maximum sizes a & b (as seen painted gray). In the case of a landscape image I want it to have a maximum width equal to the width, b, of the limit area and a height proportional to the new width, with out distorting the image (ie keeping the height/width ratio). In the case of a portrait image I want it to have a maximum height, a, equal to the height of the limit area and a width proportional to the new height, with out distorting the image (ie keeping the height/width ratio). In both cases the image will not exceed the boundaries of the limit area and will not end up distorted. Also I need to know where in the code to go and alter the a & b of the limit area. At the moment the theme does not have this feature and if you fix the height at a certain value, then the image gets distorted

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.