A quick math question.

jdog37

Power Member
Joined
Apr 3, 2009
Messages
510
Reaction score
508
Its probably a simple equation but I have not been in school since 1988.

Suppose I have an image that is 750x450 and I want to increase or decrease the size.

Example: I have a 750x450 image and want to increase the width from 450 to 600. What type of equation could I use to determine what the 750 height would be changed to in relation to the 600 width?

Would appreciate the help.
 
(w2/w1)=x
x*h1=h2

So for your example
(600/450)=1.33
1.33*750=1000

new dimensions 1000x600

w1 = old width
w2 = new width
h1 = old height
h2 = new height
x= the amount your multiplying size by
If you want to change the height of a 750x450 pic to 1200 then you would do

(h2/h1)=x
x*w1=w2

(1200/750)=1.6
1.6*450=720
 
Last edited:
Never mind, probably be wrong. LOL!
Hey, I've not done math for years too. High 5, pal.
 
Last edited by a moderator:
Its probably a simple equation but I have not been in school since 1988.

Suppose I have an image that is 750x450 and I want to increase or decrease the size.

Example: I have a 750x450 image and want to increase the width from 450 to 600. What type of equation could I use to determine what the 750 height would be changed to in relation to the 600 width?

Would appreciate the help.

An easier way is to just set up a proportion.

750/450 = x/600

Cross multiply to get 450x = 45,000.

x = 1,000


There you go. That should be right, just came in after a night of drinking :pirate::pirate:
 
Divide 450 by 600 = 0.75

Then divide 750 by 0.75
750/0.75 = 1000
 
(w2/w1)=x
x*h1=h2

So for your example
(600/450)=1.33
1.33*750=1000

new dimensions 1000x600

w1 = old width
w2 = new width
h1 = old height
h2 = new height
x= the amount your multiplying size by
If you want to change the height of a 750x450 pic to 1200 then you would do

(h2/h1)=x
x*w1=w2

(1200/750)=1.6
1.6*450=720

+rep... You are so awesome for typing out this post in such detail and in a way that even I can understand.
 
just go to pixlr and make a white square

then let pixlr resize it to whatever you want
 
It's something like this

750h.............450w
xh................600w

x=(750*600)/450=1000w

That's the width you need
 
Its probably a simple equation but I have not been in school since 1988.

Suppose I have an image that is 750x450 and I want to increase or decrease the size.

Example: I have a 750x450 image and want to increase the width from 450 to 600. What type of equation could I use to determine what the 750 height would be changed to in relation to the 600 width?

Would appreciate the help.

Not to be a dick, but when specifying dimensions like 750x450, it's WxH.. So I'd assume you're talking about going from 450 to 600 height and want to know the new width. As others have posted, you use the ratio calc which ends up with the new width being 1000.
 
just go to pixlr and make a white square

then let pixlr resize it to whatever you want

Sure, I could do that... or I can use my photo editing software to do it. But with the right math equation that I ask for and received, I can use HTML in the image code and re-size it to my requirements with very little fuss.
 
Oh sorry mate, not you, that was for OP.
You already seem to know about it, one way or another.
 
You Don't Need An Eqation Mate..

Just Fire PhotoShop, Open That Image, Go To Image Size, when you enter the widht, The new height will show automatically :D


:p
 
Roparadise is right on and gave you a great simple equation to use.
(w2/w1)=x
x*h1=h2
Basically to enlarge or reduce an image you just have to multiply or divide both the height and the width by the same factor. To double a 10x10 image for example you would multiply width and height by 2 and get 20x20. If you don't know the factor but only know the new dimension you want then the equation Roparadise gave will figure that for you.

Like howard_hughes says though most photo editing software will do it for you. Just leave 'constrain proportions' checked and change one size and the software will change the other appropriately.

For html you can resize by just defining one of the dimensions the browser will resize the other appropriately (it's poor coding, but I do it all the time. lol).
Of course that's also wasting bandwidth because the full file image will be loaded and then the browser resizes it for display. It's usually better to actually resize the image file yourself when you can. That's why websites always have thumbnail files instead of just using height and width codes to make a thumbnail.
 
Last edited:
Back
Top