NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Business & Community Discussion Forums > Community > The Break Room
Reload this Page whos good at maths?

The Break Room Casual discussion about non-industry related topics.

Advanced Search
6 members in live chat ~  
NamePros Account Upgrade NamePros Account Upgrade
Forum Sponsorship
Take advantage of our upgraded membership levels (2 levels to choose from) so you can have MORE active sales threads, Custom Titles, A Directory Listing, Invisible Mode, Message Tracking, And MORE!



Closed Thread
 
LinkBack Thread Tools
Old 05-15-2004, 02:22 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer

whos good at maths?


hey

i suck at maths big time and i got a problem

im making a image script for someone

if an image is wider than 700px the hole page distorts and looks crap

i can set the width and the height of the image easily but if i set the image width to 700 it looks like its been stretched because of the height

so what i need to do is to find out a ratio/scale/%age of the height to the width so the image wont look distored or stretched

and then im going to provide a link to the full size image...

anyone got any ideas?

thanks
adam
adam_uk is offline  
Old 05-15-2004, 02:27 PM   #2 (permalink)
Hi :)
 
Mark's Avatar
Join Date: Mar 2004
Location: NC
Posts: 9,537
Mark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatnessMark Has achieved greatness
 

Member of the Month
August 2004
Ethan Allen Fund
Eg :

468 H
60 H

468 / 60 = 7.8

So your W should remain 7.8 times your H -

You'll need Both Actual Dimensions W = Width H = Height

Does this help ?
__________________
When the man at the door yelled "Alcohol , Tobacco , and Firearms" .... I just assumed it was a delivery !
Mark is offline  
Old 05-15-2004, 02:28 PM   #3 (permalink)
Senior Member
 
Kodeking's Avatar
Join Date: Jun 2003
Location: Naperville Illinois
Posts: 1,786
Kodeking is just really niceKodeking is just really niceKodeking is just really niceKodeking is just really nice
 



yeah i know what to do. Lets say your max width is 300 px and somebody submits an image that is 600 px wide and 200 px high.

newWidth = maxWidth
newHeight = (maxWidth * originalHeight) / originalWidth


That should keep the images scaled
__________________
Quote:
Clan-Forums.com >> $30 BoardingForum.com >> $100
TalkWebHosting.com >> $200 AvoidChapter13.com >> $100
Send PM to make lesser offers on the above names.
Kodeking is offline  
Old 05-15-2004, 02:42 PM THREAD STARTER               #4 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
thank you both


helped me alot

works a treat
adam_uk is offline  
Old 05-15-2004, 03:13 PM   #5 (permalink)
Emeritus
Join Date: May 2003
Location: Winter Break©
Posts: 29,508
Jeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatnessJeff Has achieved greatness
 

NamePros Hall of Fame

Nice job, folks!

__________________
Be cool. Be polite. Be professional.™
Jeff is offline  
Old 05-16-2004, 05:26 PM   #6 (permalink)
Senior Member
 
wicked_gal00's Avatar
Join Date: Jun 2003
Location: Toronto
Posts: 2,383
wicked_gal00 is a splendid one to beholdwicked_gal00 is a splendid one to beholdwicked_gal00 is a splendid one to beholdwicked_gal00 is a splendid one to beholdwicked_gal00 is a splendid one to beholdwicked_gal00 is a splendid one to beholdwicked_gal00 is a splendid one to beholdwicked_gal00 is a splendid one to behold
 



Yay for solving problems!
wicked_gal00 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 05:03 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger