I have googled around for a solution and it seems that a lot of posts are dealing with these kind of things. Unfortunatley none of them seem to help me.
I'm trying to resize an image dynamically to create a thumbnail. I'm basically loading a current JPEG into an image object and using the following commands to create a new image:
var thumbnailBitmap = new Bitmap(newWidth, newHeight);
var thumbnailGraph = Graphics.FromImage(thumbnailBitmap);
thumbnailGraph.CompositingQuality = CompositingQuality.HighQuality;
thumbnailGraph.SmoothingMode = SmoothingMode.HighQuality;
thumbnailGraph.InterpolationMode = InterpolationMode.HighQualityBicubic;
var imageRectangle = new Rectangle(0, 0, newWidth, newHeight);
I put the image which I get from the code next to a manual re-size which was made in Photoshop. You cannot even compare between the two, the dynamic one looks so blurry when you compare it to the one made in Photoshop. Is there a way around this? I imagine Microsoft found a solution for this by now. Otherwise I will have to upload manually 4-5 different versions to every image on my website which doesn't sound right to me.
View Complete Post