ImageOptimizerAliases.

OptimizeImages(ICakeContext, DirectoryPath, DirectoryPath, ImageOptimizerSettings) Method

Summary

Optimizes Images from the settings SourceDirectory

Syntax

public static IList<OptimizedFile> OptimizeImages(this ICakeContext context, DirectoryPath sourceDirectory, DirectoryPath outputDirectory, ImageOptimizerSettings settings)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
sourceDirectory DirectoryPath The directory of the original images.
outputDirectory DirectoryPath The directory of the optimized images.
settings ImageOptimizerSettings The settings to use when optimizing the images.

Return Value

Type Description
IList<OptimizedFile>