This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.ImageOptimizer.
Summary
An interface for describing an image optimizer.
- Assembly
- Cake
.ImageOptimizer .dll - Namespace
- Cake
.ImageOptimizer - Interfaces
-
- ICloneable
- Implementing Types
graph BT
Type-.->Interface0["ICloneable"]
Type["IImageOptimizer"]
class Type type-node
Implementing0["SmushItOptimizer"]-.->Type
click Implementing0 "/api/Cake.ImageOptimizer/SmushItOptimizer"
Implementing1["GifsicleOptimizer"]-.->Type
click Implementing1 "/api/Cake.ImageOptimizer/GifsicleOptimizer"
Implementing2["JpegTranOptimizer"]-.->Type
click Implementing2 "/api/Cake.ImageOptimizer/JpegTranOptimizer"
Implementing3["KrakenOptimizer"]-.->Type
click Implementing3 "/api/Cake.ImageOptimizer/KrakenOptimizer"
Implementing4["PngOutOptimizer"]-.->Type
click Implementing4 "/api/Cake.ImageOptimizer/PngOutOptimizer"
Implementing5["PunyPngOptimizer"]-.->Type
click Implementing5 "/api/Cake.ImageOptimizer/PunyPngOptimizer"
Syntax
public interface IImageOptimizer : ICloneable
Properties
Name | Value | Summary |
---|---|---|
Extensions | IList |
A list of extensions supported by the Optimizer
|
FileSize | int |
Gets the maximum file size to optimize.
|
Name | string |
Gets the name of the service used to optimize the image.
|
Methods
Name | Value | Summary |
---|---|---|
Configure |
void |
Configure the optimizer
|
Optimize |
ImageOptimizerResult |
Optimizes the specified file.
|
Supports |
bool |
Does the optimzer support the image
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|