[advanced search]
NamePros Domain Auction
Live Event This Thursday at 6PM EST - Prebidding open now
11 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Domain Name Industry Newsletter
Go Back   NamePros.Com > Community > The Break Room
User Name
Password

Old 05-15-2004, 03:22 PM   · #1
adam_uk
Senior Member
 
Trader Rating: (17)
Join Date: May 2003
Posts: 2,211
NP$: 6170.25 (Donate)
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


Please register or log-in into NamePros to hide ads
adam_uk is offline   Reply With Quote
Old 05-15-2004, 03:27 PM   · #2
Mark
So easy a Domainer can ..
 
Mark's Avatar
 
Trader Rating: (138)
Join Date: Mar 2004
Posts: 9,386
NP$: 1304.35 (Donate)
Mark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond reputeMark has a reputation beyond repute
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 ?
__________________
Nothing to see here ... Move Along.
Nights in White Satin I dare you to find a better version - And this one is almost 40 years after the fact.
Mark is offline  
  Reply With Quote
Old 05-15-2004, 03:28 PM   · #3
Kodeking
DomainsForCharity™ Person
 
Kodeking's Avatar
 
Name: Jason
Location: Naperville Illinois
Trader Rating: (29)
Join Date: Jun 2003
Posts: 1,803
NP$: 493.50 (Donate)
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   Reply With Quote
Old 05-15-2004, 03:42 PM   · #4
adam_uk
Senior Member
 
Trader Rating: (17)
Join Date: May 2003
Posts: 2,211
NP$: 6170.25 (Donate)
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   Reply With Quote
Old 05-15-2004, 04:13 PM   · #5
Jeff
 
Name: Retired©
Location: NH
Trader Rating: (161)
Join Date: May 2003
Posts: 28,000
NP$: 1641.00 (Donate)
Jeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond reputeJeff has a reputation beyond repute
NamePros Hall of Fame
Nice job, folks!

__________________
Be cool. Be polite. Be professional.™

Get the FAQ's: Highly brandable .TEL
Tick. Tock. | "dot Mobey" R.I.P.
Jeff is offline   Reply With Quote
Old 05-16-2004, 06:26 PM   · #6
wicked_gal00
Namepros Addict
 
wicked_gal00's Avatar
 
Name: Alexandra
Location: Toronto
Trader Rating: (44)
Join Date: Jun 2003
Posts: 2,414
NP$: 351.00 (Donate)
wicked_gal00 is a name known to allwicked_gal00 is a name known to allwicked_gal00 is a name known to allwicked_gal00 is a name known to allwicked_gal00 is a name known to allwicked_gal00 is a name known to all
Yay for solving problems!
wicked_gal00 is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
RealTechNetwork RealTechNetwork RealTechNetwork
Advertise your business at NamePros
All times are GMT -7. The time now is 07:11 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0