Link to home
Start Free TrialLog in
Avatar of dotsandcoms
dotsandcoms

asked on

All type of Image resize with 0% quality loss

Hello Experts,

We are developing one website using ASp.net 2.0 and sqlserver 2005.

User can upload any size of image and their snaps from website just like picasa and other sites.

there is no size restriction they can upload any size image.

i just want to resize it  with same image ratio but image quality needs to be maintain. it shoul not get distorted.

is that possible using any component ? or

we can manage it through coading ?

Thanks.
Kinjal
ASKER CERTIFIED SOLUTION
Avatar of Chad Smith
Chad Smith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dotsandcoms
dotsandcoms

ASKER

Can i have input values for  fromstream and tostream ?

I mean code to assign input values for fromstream and tostream


This code will put an Image into a MemoryStream
            MemoryStream ms = new MemoryStream();
            Image img = Image.FromFile("file.name");
            img.Save(ms, ImageFormat.Jpeg);

Open in new window

how to write code for tostream as we had not created any file for that yet ?