PHP Class infoweb\cms\models\Image

Inheritance: extends rico\yii2images\models\Image
Exibir arquivo Open project: infoweb-internet-solutions/yii2-cms Class Usage Examples

Public Methods

Method Description
ImagickAutoRotateImage ( Imagick $image ) Automatic rotation fix
attributeLabels ( )
behaviors ( )
clearCache ( )
createVersion ( $imagePath, $sizeString = false, $crop = true, $fitImageInCanvas = false )
fitImageInCanvas ( Imagick $image, $width, $height )
getBaseUrl ( )
getFileInputWidgetCaption ( )
getFileInputWidgetPreview ( )
getPath ( $size = false, $crop = true ) : string Returns the path to the image
getPopupImage ( )
getTranslations ( ) : ActiveQuery
getUrl ( $size = false, $crop = true, $fitImageInCanvas = false )
interlaceFix ( type $file ) : boolean Fix interlaceFix
rules ( )
textPositionLabels ( )

Method Details

ImagickAutoRotateImage() public method

Automatic rotation fix
public ImagickAutoRotateImage ( Imagick $image )
$image Imagick

attributeLabels() public method

public attributeLabels ( )

behaviors() public method

public behaviors ( )

clearCache() public method

public clearCache ( )

createVersion() public method

public createVersion ( $imagePath, $sizeString = false, $crop = true, $fitImageInCanvas = false )

fitImageInCanvas() public method

public fitImageInCanvas ( Imagick $image, $width, $height )
$image Imagick

getBaseUrl() public method

public getBaseUrl ( )

getFileInputWidgetCaption() public method

getFileInputWidgetPreview() public method

getPath() public method

Returns the path to the image
public getPath ( $size = false, $crop = true ) : string
return string

getPopupImage() public method

public getPopupImage ( )

getTranslations() public method

public getTranslations ( ) : ActiveQuery
return yii\db\ActiveQuery

getUrl() public method

public getUrl ( $size = false, $crop = true, $fitImageInCanvas = false )

interlaceFix() public method

Fix interlaceFix
public interlaceFix ( type $file ) : boolean
$file type
return boolean

rules() public method

public rules ( )

textPositionLabels() public method

public textPositionLabels ( )