and umbraco

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:

  1. Open your Umbraco project in Visual Studio
  2. Search for the ImageResizer NuGet package described here:
  3. Install it
  4. Use it as described here:

An umbraco example:

   var media = Library.MediaById(Model.yourProp);
<img src="@(media.umbracoFile" + "?width=100&height=100&crop=auto")" />



One Response to and umbraco

  1. Pingback: ImageResizer – Works with | J.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: