Imageresizing.net 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: http://imageresizing.net/docs/nuget
  3. Install it
  4. 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

One Response to Imageresizing.net and umbraco

  1. Pingback: ImageResizer – Works with | J.

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: