Mono / C#/ ASP.NET中的高质量图像重新采样 [英] High quality image re-sampling in Mono/C#/ASP.NET

查看:128
本文介绍了Mono / C#/ ASP.NET中的高质量图像重新采样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个网站,要求高质量地调整上传的照片。该站点在Windows上的ASP.NET下完美运行。今天下午我尝试在Mono / Apache / Ubuntu 10.10下运行它。令我惊讶的是,它的工作原理 - 除了图像重采样。

I've developed a site that requires high quality resizing of uploaded photos. The site works perfectly under ASP.NET on Windows. This afternoon I tried running it under Mono/Apache/Ubuntu 10.10. To my surprise, it worked - except for the image resampling.

似乎Mono的Graphics / GDI +实现中的库没有实现双三次插值模式。 (请参阅 Mono Ignores Graphics.InterpolationMode?)。

It seems the libraries underlying Mono's Graphics/GDI+ implementation don't implement the bi-cubic interpolation mode. (See Mono Ignores Graphics.InterpolationMode? ).

所以我正在寻找一个可以进行高质量图像大小调整的库。我愿意付出努力与C#互操作,因为这是重要的功能,我希望能够在单声道下运行,如果可能的话。我真的不需要任何其他图形处理功能 - 只需调整大小。

So I'm looking for a library that can do high quality image resizing. I'm willing to put in the effort to interop to it from C# since this is important functionality and I'd like to be able to run under mono if at all possible. I don't really need any other graphics processing capabilities - just resize.

跟进:如下所示,ImageMagick非常适合这个,并且非常容易互操作。更多细节: http:// www。 toptensoftware.com/blog/posts/17/high-quality-image-resampling-in-monolinux

Follow up: as suggested below ImageMagick works really well for this and was pretty easy to interop to. More details here: http://www.toptensoftware.com/blog/posts/17/high-quality-image-resampling-in-monolinux

推荐答案

ImageMagick既是命令行工具,也是具有高质量插值和抗锯齿算法的库。

ImageMagick is both a command line tool and a library with high quality interpolation and antialiasing algorithms.

这篇关于Mono / C#/ ASP.NET中的高质量图像重新采样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆