[Mono-aspnet-list] Improve image resizing quality

Patrick Epstein epstone2 at gmail.com
Fri Mar 15 17:47:55 UTC 2013


Hello,

I'm resizing images with the same c# code on windows and linux and the
results on linux are worse. Just a bit less than acceptable.
What should I do to get comparable good results?

What I'm doing right now:

 image.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);
 image.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);

var resized  =  resizedImage = image.GetThumbnailImage(width, height, null,
IntPtr.Zero);

 var encoderParameters = new EncoderParameters(1);
 encoderParameters.Param[0] = new
EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 90);

saving...

Or is this the way to go?
http://www.toptensoftware.com/Articles/17/High-Quality-Image-Resampling-in-Mono-Linux

Best regards,
Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130315/7b56938c/attachment.html>


More information about the Mono-aspnet-list mailing list