Imageresizing.net and umbraco
February 13, 2012 1 Comment
This blog post describes how easy it is to use NuGet plugins with Umbraco and MVC/Razor . The plugin I describe is for imageresizing, and you can use it out of the box with out creating it as an umbraco spesific package.
Follow this steps:
- Open your Umbraco project in Visual Studio
- Search for the ImageResizer NuGet package described here: http://imageresizing.net/docs/nuget
- Install it
- Use it as described here: http://imageresizing.net/docs/examples
An umbraco example:
@{ var media = Library.MediaById(Model.yourProp); } <img src="@(media.umbracoFile" + "?width=100&height=100&crop=auto")" />
Source: imageresizing.net
Pingback: ImageResizer – Works with | J.