Link to home
Create AccountLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

ASP.NET

Anyone have a tool that I can use to set aspect ratios on images for uplaods?  I'm getting stretched vertical mimages.
Avatar of naspinski
naspinski
Flag of United States of America image

If you only specify a width, the height of an img will adjust properly.  You just have to make sure no height is declared.
Avatar of Larry Brister

ASKER

naspinski

Is there a way to look at the image on submit and determine if it's a landscape or portrait and then set the width or height based on that?
ASKER CERTIFIED SOLUTION
Avatar of naspinski
naspinski
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
I have a "Crop" question coming up.  But thanks for this answer.