BulkImageOptimizer.

Optimize(string, DirectoryPath, DirectoryPath, IList<IFile>, IList<OptimizedFile>) Method

Summary

Optimizes a list of files using a given optimizer

Syntax

public IList<OptimizedFile> Optimize(string optimizer, DirectoryPath sourceDirectory, DirectoryPath outputDirectory, IList<IFile> files, IList<OptimizedFile> configFiles)

Parameters

Name Type Description
optimizer string The optimizer to use.
sourceDirectory DirectoryPath The directory of the original images.
outputDirectory DirectoryPath The directory of the optimized images.
files IList<IFile> The files to optimze.
configFiles IList<OptimizedFile> The config files to compare against.

Return Value

Type Description
IList<OptimizedFile>