Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preserving photo dimensions during rotation

Status
Not open for further replies.

gns100

Programmer
Aug 11, 2003
40
US
I have a program I wrote in JS that rotates images. The photos are different sizes (some are in landscape format, some in portrait) - also it is difficult to get all the landscape ones to be the same size, esp. after cropping. I have made them all the same width, say 4 inches.

At the moment they display in a fixed size box and so many of them get distorted.

Is there a way to associate the size (L and W) information with each image so they display at the correct aspect ratio and result in no distortion.

Thanks.
 
I'm guessing you're using some IE only filter. Why are you putting them in a fixed size box? Can you post the code you're using?

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
Hi Adam,

Sorry, I was confused and posted another item with the code. See

thread216-680085

"Displaying images with correct dimensions" posted on 11/14/03

The issue is I'm trying to transfer the height and width info from a JS function into the <body> section for each photo as it is displayed. In reality there are many photos, not just two.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top