Property | Type | Description | |
---|---|---|---|
$binaryPath | |||
$finalFileSize | |||
$imagePath | |||
$optimisationLevel | |||
$originalFileSize | |||
$outputPath |
Method | Description | |
---|---|---|
determinePostOptimisedFileSize ( ) | Calculates and stores the post-optimised fileSize | |
determinePreOptimisedFileSize ( ) | Calculates and stores the pre-optimised fileSize | |
setBinaryPath ( string $binaryPath = '' ) | Sets the path of the executable | |
setImagePath ( $imagePath ) | Sets the path of the image | |
setOptimisationLevel ( integer $level = 2 ) | Sets the desired level of optimisation. |
public determinePostOptimisedFileSize ( ) |
public determinePreOptimisedFileSize ( ) |
public setBinaryPath ( string $binaryPath = '' ) | ||
$binaryPath | string |
public setImagePath ( $imagePath ) | ||
$imagePath |
public setOptimisationLevel ( integer $level = 2 ) | ||
$level | integer |