ImageResizer 4.2.5-pre

Lightweight HttpModule, REST API, and managed API for *safe* and highly-optimized server-side image processing.



Works with .NET 4.5.1+, ASP.NET WebForms, MVC 1-4, WebAPI, Routing, IIS 7, 7.5, & 8, 8.1 and nearly all CMSes.

Use ether the URL API: image.jpg?width=100&height=100 *or* the Managed API: ImageBuilder.Current.Build(source,dest,settings).

ImageResizer provides incredible quality and highly-optimized image processing - by default. Don't leak memory by using System.Drawing directly or create horrible previews with GetThumbnailImage. Add the ImageResizer.Plugins.DiskCache package to serve dynamic images as fast as static ones.

With this library, you can create beautiful image galleries, product thumbnails, and fast, scalable websites *without* sacrificing agility or responsive web design.

## Functionality in this package

The ImageResizer core package lets you:

1. Decode jpeg, png, gif, tiff, and bmp files from uploads, streams, byte arrays, and files.

2. Pre-rotate or flip (based on gravity sensor OR manual angle).

3. Apply manual cropping in either source or screen coordinates.

4. Efficiently apply width and/or height constraints, using any of several constraint modes: max, pad, crop, or stretch. Provides the highest quality image resampling (bicubic 2-pass) available on the windows platform.

5. Rotate, flip, add borders, padding, margins, with custom colors.

3. Re-compress into jpeg (with adjustable compression) or lossless png form -  as a byte array, stream, or file.

All through a REST API and Managed API with a symmetrical command set.

URL rewriting, custom authorization, 404 fallbacks, gradient generation, exif stripping, size limiting, and cache-control customization are also included in the core DLL.

## 30+ plugins available

Search 'ImageResizer' on, or visit to see 40+ plugins. Some offer 4-30x performance improvements; some render PDFs and PSDs; others detect faces and trim whitespace.
You'll find  plugins for disk caching, memory caching, Microsoft SQL blob support, Amazon CloudFront, S3, Azure Blob Storage, MongoDB GridFS, automatic whitespace trimming, automatic white balance, octree 8-bit gif/png quantization and transparency dithering, animated gif resizing, watermark & text overlay support, content aware image resizing / seam carving (based on CAIR), grayscale, sepia, histogram, alpha, contrast, saturation, brightness, hue, Guassian blur, noise removal, and smart sharpen filters, psd editing & rendering, raw (CR2, NEF, DNG, etc.) file exposure, .webp (weppy) support, image batch processing & compression into .zip archives, red eye auto-correction,  face detection, and secure (signed!) remote HTTP image processing. Most datastore plugins support the Virtual Path Provider system, and can be used for non-image files as well.

## Third-party integration

Third parties have made some excellent UI wrappers and plugins, including Eksponent CropUp, FluentExtensions, jQuery NailThumb, WebCropImage, and mindrevolution's ResponsivePresets. Check out our own StudioJS for an amazing image editing studio based on the REST API.

This is a prerelease version of ImageResizer.
There is a newer version of this package available.
See the version list below for details.
Install-Package ImageResizer -Version 4.2.5-pre
dotnet add package ImageResizer --version 4.2.5-pre
<PackageReference Include="ImageResizer" Version="4.2.5-pre" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImageResizer --version 4.2.5-pre
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

Showing the top 10 GitHub repositories that depend on ImageResizer:

Repository Stars
Smart PVR for newsgroup and bittorrent users.
A fork of Sonarr to work with movies à la Couchpotato.
The official repository for ImageResizer
An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
A Windows app used to download albums from Bandcamp.
A chat application implemented using Xamarin.Forms and DDD + MVVM
A lightweight blog engine built with ASP.NET MVC 3, Razor, jQuery and C#.
Mr CMS is an open source C# MVC CMS Framework
c# mvc base development framework from nopCommerce。

Version History

Version Downloads Last updated
4.2.5 330,106 4/6/2018
4.2.5-pre 1,032 2/19/2018
4.2.4-pre 1,429 12/13/2017
4.2.3-pre 354 12/13/2017
4.2.1-pre 410 11/29/2017
4.2.0 122,113 11/28/2017
4.1.11 52,727 11/8/2017
4.1.10 45,022 9/13/2017
4.1.9 107,966 6/22/2017
4.0.5 512,999 1/31/2016
4.0.4 116,061 10/25/2015
4.0.3 850 10/25/2015
4.0.2 591 10/25/2015
4.0.1 44,757 10/25/2015
4.0.0-prerelease0881 1,415 8/11/2015
4.0.0-prerelease0877 910 7/7/2015
3.4.3 482,972 5/8/2014
3.4.2 98,564 11/26/2013
3.4.1 12,573 10/30/2013
3.4.0 6,619 10/17/2013
3.3.3 95,928 3/2/2013
3.3.2 16,653 1/24/2013
3.3.1 7,527 12/20/2012
3.3.0 3,961 12/4/2012
3.2.4 37,058 8/6/2012
3.2.3 9,382 6/30/2012
3.2.2 2,484 6/20/2012
3.2.1 1,570 6/4/2012
3.2.0 893 6/3/2012
3.1.5 8,152 2/22/2012
3.1.4 1,862 1/22/2012
3.1.3 883 1/14/2012
3.1.2 2,364 12/7/2011
3.0.13 2,068 10/23/2011
3.0.12 1,689 8/15/2011
3.0.11 843 7/28/2011 880 7/28/2011 873 6/15/2011 906 6/15/2011
3.0.9 3,556 6/15/2011