MVC3 /剃刀缩略图/调整图像的想法? [英] MVC3/Razor thumbnail/resize image ideas?
问题描述
有一个简单的和动态的方式来创建缩略图和MVC3 /剃刀调整图像?一个帮手,libary,什么?
Is there an easy and dynamic way to create thumbnails and resize images in MVC3/Razor? A helper, libary, anything?
这将是很好,如果我以某种方式可以管理从控制器的图像的大小。甚至在razorview。例如:在索引视图我想要的图像成为具有一定规模,但在细节来看我想他们是全尺寸
It would be nice, if I somehow could manage the size of the images from the controller. Or even in razorview. Example: In the index view I want the images to be a certain size, but in the details view i want them to be full size.
我知道这个问题是模糊的,但我真的无法找到对谷歌/计算器比老MVC1 thingos的任何其他。
I know this question is vague, but I really couldnt find anything on google/stackoverflow other than old mvc1 thingos.
你们如何正常面对呢?
推荐答案
另外看看我的Simple.ImageResizer.MvcExtensions的NuGet包。
Also take a look at my Simple.ImageResizer.MvcExtensions nuget package.
在这里演示网站: http://imageresizer.apphb.com/
添加,你可以在你的控制器动作,需要一个高度和宽度输入使它pretty容易添加图片大小为你的MVC网站使用ImageResult类。很想听听你的想法
Adds a ImageResult class that you can use in your controller action that takes a height and width input making it pretty easy to add image resizing to your mvc site. Would love to hear what you think
这篇关于MVC3 /剃刀缩略图/调整图像的想法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!