There are a number of articles on how to accomplish what you are needing, here are just a few:
http://www.codeproject.com
http://blog.paranoidferret
Main Topics
Browse All TopicsI am looking for some code to get me started in resizing photos. Users uploaded photos of any size, with just a restriction of 3 mb. The height and width can be of any size. So when the users click on the thumbnail of the image, their original photo is displayed and it usually is of a size that is bigger than the web browser and the users have to scroll horizontally and vertically to see the photo. What I'm looking to do is resize/recrop the the photo so that it is more manageable to view. I'd like to be able to open a popup web browser at a certain size, say 600 pixels, and have that as the base for the photo to be recropped around. Obviously the photo can't be recropped to 600x600 or it would be distorted one way or another. Any help would be appreciated.
Thanks in advance....
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There are a number of articles on how to accomplish what you are needing, here are just a few:
http://www.codeproject.com
http://blog.paranoidferret
Business Accounts
Answer for Membership
by: VelioPosted on 2008-02-08 at 12:23:52ID: 20853725
this function is one way of scaling an image.
should be fairly easy to calculate the scale you should be scaling at to get to a desired target width/height...
scale = targetWidth / originalWidth or targetHeight / originalHeight
Select allOpen in new window