I have a .Net application written in C# where members may upload their
photos and have them displayed on our website. We are trying to
maintain the best quality using best settings in .Net for this.
A good commercial comparison is as follows;
I uploaded a photo to www.flickr.com. http://www.flickr.com/photos/visione...n/photostream/
The photo contains 73076 kbs. --- When I upload the 'same photo' to
our application it saves it at 13076 kbs. That's nice for speed but
not very good for quality.
Here is the settings we are using:
::::::::::::::: ::::::::::::::: ::::::::::::::: :::::::::::
System.Drawing.
Image image1 =
System.Drawing. Image.FromFile( Server.MapPath( imgfilepath +
actimgFilename) );
System.Drawing.
Image smallimage = new Bitmap (imgNewWidth, imgNewHeight,
image1.PixelFor mat);
Graphics oGraphic = Graphics.FromIm age(smallimage) ;
oGraphic.Compos itingQuality =
CompositingQual ity.HighQuality ;
oGraphic.Smooth ingMode =
SmoothingMode.H ighQuality;
oGraphic.Interp olationMode =
InterpolationMo de.HighQualityB icubic;
oGraphic.PixelO ffsetMode =
PixelOffsetMode .HighQuality;
Rectangle oRectange = new Rectangle (0, 0, imgNewWidth,
imgNewHeight);
oGraphic.DrawIm age(image1, oRectange);
smallimage.Save (Server.MapPath (imgfilepath + newFilename),
System.Drawing. Imaging.
ImageFormat.Jpe g);
::::::::::::::: ::::::::::::::: ::::::::::::::: :::::::::::
Thanks in advance,
Rick