SeamCarving plugin

Provides content-aware image resizing and 5 different algorithms.

Based on the CAIR (v2.19) library.

This plugin requires full trust to work. On 32-bit PNG images, the alpha channel is reduced to a single bit. Works best with jpeg and gif images.

For live examples, see this page.

Algorithm choices

  • carve=true
  • carve=prewitt
  • carve=v1
  • carve=vsquare
  • carve=sobel
  • carve=laplacian

Example use:

image.jpg?width=300&height=300&carve=true

Installation

Either run Install-Package ImageResizer.Plugins.SeamCarving in the NuGet package manager, or:

  1. Add ImageResizer.Plugins.SeamCarving.dll to your project
  2. Add <add name="SeamCarving" /> inside <resizer><plugins></plugins></resizer> in Web.config.

This plugin (SeamCarving plugin) is part of the Creative Edition

The Creative edition costs $499 per domain.

Where is the plugins section?

The <plugins> section is located in Web.config, and is nested inside the <resizer> element, which is nested inside <configuration>. For examples, see this sample Web.config file.

Where can I find the dll?

We prefer that you install via NuGet, but you can also find the plugin DLL files in the /dlls/release folder of your download.

How do I typically install a plugin via Web.Config?

  1. In Visual Studio, right click on your project and choose "Add reference". Browse to the plugin DLL and click "OK".
  2. In the <plugins> section of Web.config, insert <add name="PluginName" />
  3. Look at the plugin documentation to see what configuration options (if any) are available.

How do I typically install a plugin via code?