调整图像上的.NET和C#飞 [英] Resize image on the fly in .net and c#

查看:139
本文介绍了调整图像上的.NET和C#飞的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一种方式来调整图像而不保存在服务器上。我已经找到了方法包括控制文件,这样的。

I'm looking for a way to resize images without saving them on the server. The ways that i have found includes a controller file and such.

有没有办法从流中获取图像,调整其大小,并将其添加到响应?

Is there a way to get the image from the stream, resize it and add it to the response?

推荐答案

查看 ImageResizer - 这是一套的NuGet包针对这一确切目的。

Check out ImageResizer - it's a suite of NuGet packages designed for this exact purpose.

据丹麦,MSN奥运会,和其他一些大网站运行易趣。

It runs eBay in Denmark, MSN Olympics, and a few other big sites.

动态图像处理,可以安全,高效地完成的,但不是在code进行理智量。这是麻烦比它的出现的。

Dynamic image processing can be done safely and efficiently, but not in a sane amount of code. It's trickier than it appears.

这篇关于调整图像上的.NET和C#飞的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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