Forum Moderators: coopster

Message Too Old, No Replies

Figuring (outputting) height before processing

How to?

         

henry0

5:36 pm on Aug 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a formula to figure out the new height of an image to be resized Knowing that an user has supplied via a form the initial height and width
I am not interested in “How to” process a create, resize etc...
Just interested in getting the new height output without processing a resize
I need to output the new height result before any further (if any) action.

RonPK

8:57 am on Aug 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about

newheight = (newwidth/oldwidth) * oldheight

henry0

11:14 am on Aug 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good call!

Thank you

Henry