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
Get an optimizer from the factory
- Assembly
- Cake
.ImageOptimizer .dll - Namespace
- Cake
.ImageOptimizer - Containing Type
- Image
Optimizer Factory
Syntax
public ImageOptimizerResult Optimize(string optimizer, FilePath sourcePath, FilePath outputPath)
Parameters
| Name | Type | Description |
|---|---|---|
| optimizer | string | The name of the optimizer. |
| sourcePath | FilePath | The path of the file to optimize. |
| outputPath | FilePath | The output path for the optimized image. |
Return Value
| Type | Description |
|---|---|
| ImageOptimizerResult |
