skip to main content
We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Dynamic Image Resizing Module v3

Windows This is a Community Contributed Download

CategoryDevelop
LicenseFree
Supported byEmail, Phone, Knowledge base, Forums
Works WithIIS 5, IIS 5.1, IIS 6, IIS 7, IIS 7.5
DocumentationDynamic Image Resizing Module v3 Documentation
Updated onSeptember 7, 2011
Uploaded bynathanael.jones@gmail.com

Overview

Let the server resize, crop, and process your images without sacrificing speed or scalability. Use HTML, ASP.NET, ASP, PHP, Flex, or Flash ... Just add the desired behavior to the URL with "?width=100" or "?format=jpg". Supports scaling, cropping, rotating, flipping, stretching, padding, borders, transparency, jpeg, png, gif, bmp, tiff, and psd formats. Used by dozens of commercial CMS systems and hundreds of web sites, this module has an unparalleled satisfaction rate and incredibly quick support. And on top of everything else, it's free.

Features

Command Reference

  • width, height - force the width and/or height to certain dimensions. Whitespace will be added if the aspect ratio is different.
  • maxwidth, maxheight - fit the image within the specified bounds. (Most often used)
  • crop=auto - Crop the image the the size specified by width and height. Centers and minimally crops to preserve aspect ratio.
  • crop=(x1,y1,x2,y2) - Crop the image to the specified rectangle on the source image. You can use negative coordinates to specifiy bottom-right relative locations.
  • rotate=degress - Rotate the image.
  • bgcolor=color name| hex code (6-char). Sets the background/whitespace color.
  • stretch=fill - Stretches the image to width and height if both are specified. This is the only way to lose aspect ratio.
  • scale=both|upscaleonly|downscaleonly - By default, images are never upscaled. Use &scale=both to grow an image.
  • flip=h|v|both - Flips the image after resizing.
  • sourceFlip=h|v|both - Flips the source image before resizing/rotation.
  • paddingWidth=px & paddingColor=color|hex. paddingColor defaults to bgcolor, which defaults to white.
  • borderWidth=px, borderColor=color|hex.
  • format=jpg|png|gif
  • colors=2-255 - Control the palette size of PNG and GIF images. If omitted, PNGs will be 24-bit.
  • frame=x - Choose which frame of an animated GIF to display.
  • page=x - Choose which page of a multi-page TIFF document to display.

Plugins

Add one of 27+ of plugins to get exactly what you want.

  • DiskCache gives you the same speed and scalability as static, pre-rendered images.
  • PrettyGifs provides Photoshop-quality GIFs and 8-bit PNG encoding.
  • PsdReader lets you convert PSD files to jpeg on the fly.
  • SimpleFilters and AdvancedFilters give you URL-based image color adjustment and filtering
  • Watermark makes it easy to watermark images from the URL.
  • AnimatedGifs lets you resize and process animated GIFs.
  • WhitespaceTrimmer automatically trims whitespace from product photos.
  • SeamCarving lets you resize images using content-aware image resizing.
  • Image404 lets you specify fallback images to display when an image is missing.
  • CloudFront lets you distribute your images through the Amazon Content Delivery Network.
  • S3Reader allows you to resize and serve images from one or more S3 buckets
  • SQLReader allows you to resize and serve images from a SQL db
  • AzureReader lets you resize and process images located in Azure Blob Storage.
  • RemoteReader allows you to resize images located on whitelisted external websites.
  • Read more about plugins...

Benefits

Server-side image resizing provides incredible ROI. It can save webmasters several hours each day, and gives you the ability to change the resolution of an image without having to hunt up the original.

First developed in 2007, this module has been continually refined and improved based on customer feedback for over 4 years.


Requirements

ASP.NET 2, 3, 3.5, or 4. IIS5, 5.1, 6, 7, 7.1, 7.5, IIS Express, or Cassini.