I have an Image with the Value X width and Y height.
Now I want to set the height ever to 60px.
With which calculation I can calculate the height that the image is correct resized?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you are trying to maintain aspect ratio. If so use the following:
ratio = orginialHeight / newHeight
newWidth = orginialWidth * ratio