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
Gifsicle image optimizer.
- Assembly
- Cake
.ImageOptimizer .dll - Namespace
- Cake
.ImageOptimizer - Interfaces
-
- IImageOptimizer
- ICloneable
- Base Types
-
- Object
- BaseOptimizer
- BaseLocalOptimizer
graph BT
Type-->Base0["BaseLocalOptimizer"]
click Base0 "/api/Cake.ImageOptimizer/BaseLocalOptimizer"
Base0-->Base1["BaseOptimizer"]
click Base1 "/api/Cake.ImageOptimizer/BaseOptimizer"
Base1-->Base2["Object"]
Type-.->Interface0["IImageOptimizer"]
click Interface0 "/api/Cake.ImageOptimizer/IImageOptimizer"
Type-.->Interface1["ICloneable"]
Type["GifsicleOptimizer"]
class Type type-node
Syntax
public class GifsicleOptimizer : BaseLocalOptimizer, IImageOptimizer, ICloneable
Constructors
Name | Summary |
---|---|
GifsicleOptimizer |
Initializes a new instance of the GifsicleOptimizer class.
|
Fields
Name | Constant Value | Summary |
---|---|---|
_Environment |
Represents the environment Cake operates in.
Inherited from BaseOptimizer
|
|
_FileSystem |
Represents a file system.
Inherited from BaseOptimizer
|
|
_Log |
Represents a log.
Inherited from BaseOptimizer
|
|
_Runner |
Represents a process runner.
Inherited from BaseLocalOptimizer
|
|
_Tools |
Responsible for finding the tool.
Inherited from BaseLocalOptimizer
|
Properties
Name | Value | Summary |
---|---|---|
Extensions | IList |
A list of extensions supported by the Optimizer
|
FileSize | int |
Gets the maximum file size to optimize.
Inherited from BaseOptimizer
|
Name | string |
Gets the name of the optimizer.
|
Timeout | int |
Gets the maximum timespan for the request.
Inherited from BaseOptimizer
|
Methods
Name | Value | Summary |
---|---|---|
Clone |
object |
Creates a new object that is a copy of the current instance.
|
Configure |
void |
Configure the optimizer
|
Optimize |
ImageOptimizerResult |
Optimizes the specified file.
Inherited from BaseLocalOptimizer
|
RunTool |
void |
Runs the optimizer tool
|
Supports |
bool |
Does the specified file.
Inherited from BaseOptimizer
|
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
|