PHP Class PHPImageOptim\Tools\Common

Show file Open project: bensquire/php-image-optim

Protected Properties

Property Type Description
$binaryPath
$finalFileSize
$imagePath
$optimisationLevel
$originalFileSize
$outputPath

Public Methods

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.

Method Details

determinePostOptimisedFileSize() public method

Calculates and stores the post-optimised fileSize

determinePreOptimisedFileSize() public method

Calculates and stores the pre-optimised fileSize

setBinaryPath() public method

Sets the path of the executable
public setBinaryPath ( string $binaryPath = '' )
$binaryPath string

setImagePath() public method

Sets the path of the image
public setImagePath ( $imagePath )
$imagePath

setOptimisationLevel() public method

Sets the desired level of optimisation.
public setOptimisationLevel ( integer $level = 2 )
$level integer

Property Details

$binaryPath protected property

protected $binaryPath

$finalFileSize protected property

protected $finalFileSize

$imagePath protected property

protected $imagePath

$optimisationLevel protected property

protected $optimisationLevel

$originalFileSize protected property

protected $originalFileSize

$outputPath protected property

protected $outputPath