开发者

What controls the image quality in IIS based on the following example?

I had this question before "Resize image on the fly make the image lose quality online but locally works nice"

And w开发者_如何学Chat i got now is that it's not a problem of local or online, i ran this resize on the server itself "dedicated server", and i got the same bad quality image, so the problem is in the IIS configurations.

What in iis can make this bad quality image happen?


The issue here is inside the DynamicImage object.

This is the one that creates the image and send it.

Just find if this object have an option about the quality, or just use any other method to resize your image. Its really very simple to resize an image and the quality is change on this options

Graphics g

g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

Some urls
http://www.glennjones.net/Post/799/Highqualitydynamicallyresizedimageswithnet.htm
http://www.codeproject.com/KB/web-image/pnguploader.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜