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["JpegTranOptimizer"]-.->Type
click Implementing1 "/api/Cake.ImageOptimizer/JpegTranOptimizer"
Implementing2["PngOutOptimizer"]-.->Type
click Implementing2 "/api/Cake.ImageOptimizer/PngOutOptimizer"
Implementing3["KrakenOptimizer"]-.->Type
click Implementing3 "/api/Cake.ImageOptimizer/KrakenOptimizer"
Implementing4["PunyPngOptimizer"]-.->Type
click Implementing4 "/api/Cake.ImageOptimizer/PunyPngOptimizer"
Implementing5["GifsicleOptimizer"]-.->Type
click Implementing5 "/api/Cake.ImageOptimizer/GifsicleOptimizer"
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 |
Throws an exception if the specified parameter's value is null.
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 |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|