Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Funny, you look bigger in real life... Server side image resizing with the free and open source ImageResizer

It's not often I see a full and complete ASP.Net HTTP module made source available or open source, so when I saw this forum post, The best image processing HttpModule is now free and open-source!, I thought it would make a good project to check out.

ImageResizer

Work less, do more

Resize, crop, rotate, watermark, and modify images without ever leaving your code editor or browser, with a simple API.

  • Query string API (all languages)
    image.jpg?width=300
  • Managed API (.NET and COM languages)
    ImageBuilder.Current.Build(source,destination,parameters)

Stop managing multiple image versions. Stop the endless photoshop-upload-test cycle, and let images become the easiest part of your job.

Free

The most popular features are free and open-source:

  • Resizing, cropping, rotating, flipping
  • Borders, drop-shadows, padding, background colors
  • Adjustable Jpeg compression. Multi-page tiff viewing.
  • Animated GIF frame selection. Comprehensive, real-time diagnostics.
  • Basic GIF and PNG encoding

And — no time limits on plugin trials!

One of the first things I look at on open source projects is the license. ImageResizer's is about as open and friendly as can be. Here's a snip;

The ImageResizer Core project (the /Core/ folder and its subdirectories) are licensed under the Resize Freedom license.

This includes all plugins in the ImageResizer.Plugins.Basic namespace. (NoCache,DefaultEncoder,ClientCache,Caption,DropShadow,SizeLimiting, etc.)

Visit http://imageresizingin.net/licenses/freedom for the latest version of the license.

#Image Resizer Freedom license

##License summary:

No restrictions, except you can't use my own code to compete with my own products.

Permitted actions
* Usage
* Modification
* Redistribution
* Sub-licensing (but the original license must be included with the source and binaries)
* Hosting providers may install as a shared library (in the GAC) on their servers.

An exact copy of the [MIT license](http://www.opensource.org/licenses/mit-license.php), but with one extra condition (in bold).

...

Here's a snap of the V3 Alpha 2 Visual Studio Solution

image

Running the solution gives you...

image

Then you an start playing around with it, via its query string API

image

image

image

Nathanael has a the command reference here and here's a snip of all you can do.

SNAGHTMLfe81641

BTW, the web project has a binary reference to the ImageResizer DLL. Which means if you put a break point in the code and run it, you'll never hit it (funny that). Easy enough to fix, just change the binary reference to a project reference and you'll be break pointing away just fine...

image

image

If you're doing any server side image manipulation, would like to see how a HTTP module works, or are interested in image store locations beyond the file system (like Amazon's S3, SQL Server, etc) then ImageResizer's code is calling your name...

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.