ImageResizer
3.4.0
|
Namespaces | |
package | Caching |
package | Collections |
package | Configuration |
package | Encoding |
package | ExtensionMethods |
package | Licensing |
package | Plugins |
package | Resizing |
package | Util |
Classes | |
class | BoxEdges |
Represents the widths of edges of a box. More... | |
class | ResizerSection |
Handles reading the <resizer> section from Web.Config More... | |
class | ImageBuilder |
Provides methods for generating resized images, and for reading and writing them to disk. Use ImageBuilder.Current to get the current instance (as configured in the application configuration), or use ImageBuilder.Current.Create() to control which extensions are used. More... | |
class | ImageJob |
class | ImageProcessingException |
Represents an non-recoverable exception that occured while processing the image. Possible causes are: a corrupted source file, cache resource timeout (such as a locked file in imagecache), unusable configuration (for example, no registered encoders or caches), invalid syntax, or a size limit was exceeded and the request was stopped by the SizeLimiting extension. May also be caused by a missing source file/resource, in the form of the ImageMissingException subclass. More... | |
class | ImageCorruptedException |
A source file was corrupted More... | |
class | ImageMissingException |
One or more source files was missing More... | |
class | Instructions |
A name/value collection of image processsing instructions. The successor to ResizeSettings. Just because a key doesn't have a property wrapper doesn't mean you can't use it. i["key"] = value; isnt' that scary. More... | |
class | InterceptModule |
Monitors incoming image requests to determine if resizing (or other processing) is being requested. More... | |
class | ResizeSettings |
Represents the settings which will be used to process the image. Extends NameValueCollection to provide friendly property names for commonly used settings. Replaced by the Instructions class. Will be removed in V4.0 More... | |
class | ImageUploadHelperS3Extensions |
class | ImageUploadHelper |
Enumerations | |
enum | OutputFormat { OutputFormat.Jpeg = 8, OutputFormat.Png = 16, OutputFormat.Gif = 32 } |
Output image formats More... | |
enum | ServerCacheMode { ServerCacheMode.No, ServerCacheMode.Always, ServerCacheMode.Default } |
When to disk cache the image More... | |
enum | ProcessWhen { ProcessWhen.No, ProcessWhen.Always, ProcessWhen.Default } |
When to process and re-encode the file. More... | |
enum | ScaleMode { ScaleMode.DownscaleOnly, ScaleMode.UpscaleOnly, ScaleMode.Both, ScaleMode.UpscaleCanvas } |
Controls whether the image is allowed to upscale, downscale, both, or if only the canvas gets to be upscaled. More... | |
enum | StretchMode { StretchMode.Proportionally, StretchMode.Fill } |
[Deprecated (Use FitMode.Stretch)] Previously used to force an image to be 'stretched' to match a different aspect ratio. More... | |
enum | FitMode { FitMode.None, FitMode.Max, FitMode.Pad, FitMode.Crop, FitMode.Carve, FitMode.Stretch } |
How to resolve aspect ratio differences between the requested size and the original image's size. More... | |
enum | CropMode { CropMode.None, CropMode.Auto, CropMode.Custom } |
enum | CropUnits { CropUnits.SourcePixels, CropUnits.Custom } |
enum | FlipMode { FlipMode.None = 0, FlipMode.X = 4, FlipMode.Y = 6, FlipMode.XY = 2 } |
Horizontal and vertical flipping. Convertible to System.Drawing.RotateFlipType by casting. More... | |
enum | AnchorLocation { AnchorLocation.TopLeft = 1, AnchorLocation.TopCenter = 2, AnchorLocation.TopRight = 4, AnchorLocation.MiddleLeft = 16, AnchorLocation.MiddleCenter = 32, AnchorLocation.MiddleRight = 64, AnchorLocation.BottomLeft = 256, AnchorLocation.BottomCenter = 512, AnchorLocation.BottomRight = 1024 } |
Anchor location. Convertible to System.Drawing.ContentAlignment by casting. More... | |
enum | GrayscaleMode { None = 0, GrayscaleMode.Y = 1, NTSC = 1, RY = 2, BT709 = 3, GrayscaleMode.Flat = 4 } |
Modes of converting the image to Grayscale. GrayscaleMode.Y usually produces the best resuts More... | |
enum | JpegSubsamplingMode { JpegSubsamplingMode.Default = 0, JpegSubsamplingMode.Y4Cb1Cr1 = 4, JpegSubsamplingMode.Y4Cb2Cr0 = 8, JpegSubsamplingMode.Y4Cb2Cr2 = 16, JpegSubsamplingMode.HighestQuality =32, JpegSubsamplingMode.Y4Cb4Cr4 = 32 } |
The Jpeg subsampling mode to use. Requires FreeImageEncoder, FreeImageBuilder, WicEncoder, or WicBuilder. More... | |
Anchor location. Convertible to System.Drawing.ContentAlignment by casting.
Definition at line 204 of file Enumerations.cs.
Definition at line 145 of file Enumerations.cs.
Enumerator | |
---|---|
SourcePixels |
Indicates the crop units are pixels on the original image. |
Custom |
Indicates a custom range is being specified for the values. Base 0. |
Definition at line 162 of file Enumerations.cs.
enum ImageResizer.FitMode |
How to resolve aspect ratio differences between the requested size and the original image's size.
Definition at line 114 of file Enumerations.cs.
Horizontal and vertical flipping. Convertible to System.Drawing.RotateFlipType by casting.
Enumerator | |
---|---|
None |
No flipping |
X |
Flip horizontally |
Y |
Flip vertically (identical to 180 degree rotation) |
XY |
Flip horizontally and vertically |
Definition at line 177 of file Enumerations.cs.
Modes of converting the image to Grayscale. GrayscaleMode.Y usually produces the best resuts
Enumerator | |
---|---|
Y |
The reccomended value. Y and NTSC are identical. |
Flat |
Red, green, and blue are averaged to get the grayscale image. Usually produces poor results compared to other algorithms. |
Definition at line 254 of file Enumerations.cs.
The Jpeg subsampling mode to use. Requires FreeImageEncoder, FreeImageBuilder, WicEncoder, or WicBuilder.
Definition at line 275 of file Enumerations.cs.
Output image formats
Definition at line 10 of file Enumerations.cs.
When to process and re-encode the file.
Enumerator | |
---|---|
No |
Request no processing of the image or file (generally used with cache=always). The file contents will be used as-is. |
Always |
Require the file or image to be processed. Will cause non-image files to fail with an ImageCorruptedException. |
Default |
Default. Only files with both a supported image extension and resizing settings specified in the querystring will be processed. |
Definition at line 54 of file Enumerations.cs.
Controls whether the image is allowed to upscale, downscale, both, or if only the canvas gets to be upscaled.
Definition at line 75 of file Enumerations.cs.
When to disk cache the image
Definition at line 36 of file Enumerations.cs.
[Deprecated (Use FitMode.Stretch)] Previously used to force an image to be 'stretched' to match a different aspect ratio.
Enumerator | |
---|---|
Proportionally |
[Deprecated (Use FitMode)] Maintains aspect ratio. Default. |
Fill |
[Deprecated (Use FitMode)] Skews image to fit the new aspect ratio defined by 'width' and 'height' |
Definition at line 101 of file Enumerations.cs.