Image Resizer - the IIS/ASP.NET module for everyone

Resize, watermark, crop, rotate and filter from the image URL.
Usable from javascript, css, html, php, ruby, python, asp, asp.net, anything!

Using the ImageResizer from COM

While the URL API method is preferred, you can use the ImageResizer with the COM API. This means VB6, VBScript, JScript, C++, and other COM-compatible languages can resize images, even if they're desktop apps or command-line scripts.

To install the ImageResizer as a COM component, run \dlls\release\COMInstaller.exe with Administrator privileges and click 'Install'.

JScript example

//The first step is to create a configuration object (where you register plugins, configure stuff, etc.)
var c = new ActiveXObject("ImageResizer.Configuration.Config");

//This is how you install a plugin
var p = new ActiveXObject("ImageResizer.Plugins.PrettyGifs.PrettyGifs");
p.Install(c);

//This is how you generate an image
c.BuildImage("..\\Images\\quality-original.jpg","grass.gif", "rotate=3&width=600&format=gif&colors=128");

// You can even get diagnostics output if something's not working
// c.WriteDiagnosticsTo("advancedScript-1.txt");

//You can create different configurations
var c2 = new ActiveXObject("ImageResizer.Configuration.Config");

//And use them separately
c2.BuildImage("..\\Images\\quality-original.jpg","grass-ugly.gif", "rotate=3&width=600&format=gif");

//c2.WriteDiagnosticsTo("advancedScript-2.txt");

VBScript example

Set c = CreateObject("ImageResizer.Configuration.Config")

c.BuildImage "..\\Images\\tractor.jpg", "tractor-rotated.jpg", "rotate=45"