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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This code will put an Image into a MemoryStream
MemoryStream ms = new MemoryStream();
Image img = Image.FromFile("file.name");
img.Save(ms, ImageFormat.Jpeg);
ASKER
how to write code for tostream as we had not created any file for that yet ?
ASKER
I mean code to assign input values for fromstream and tostream