PHP Класс PHPImageOptim\Tools\Common

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$binaryPath
$finalFileSize
$imagePath
$optimisationLevel
$originalFileSize
$outputPath

Открытые методы

Метод Описание
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.

Описание методов

determinePostOptimisedFileSize() публичный Метод

Calculates and stores the post-optimised fileSize

determinePreOptimisedFileSize() публичный Метод

Calculates and stores the pre-optimised fileSize

setBinaryPath() публичный Метод

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

setImagePath() публичный Метод

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

setOptimisationLevel() публичный Метод

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

Описание свойств

$binaryPath защищенное свойство

protected $binaryPath

$finalFileSize защищенное свойство

protected $finalFileSize

$imagePath защищенное свойство

protected $imagePath

$optimisationLevel защищенное свойство

protected $optimisationLevel

$originalFileSize защищенное свойство

protected $originalFileSize

$outputPath защищенное свойство

protected $outputPath