PHP Class Spatie\Glide\GlideImage

ファイルを表示 Open project: spatie/laravel-glide Class Usage Examples

Protected Properties

Property Type Description
$modificationParameters The modification the need to be made on the image. Take a look at Glide's image API to see which parameters are possible. http://glide.thephpleague.com/1.0/api/quick-reference/
$sourceFile The path to the input image.

Public Methods

Method Description
create ( string $sourceFile ) : GlideImage
modify ( array $modificationParameters ) : GlideImage
save ( string $outputFile ) : string
setSourceFile ( string $sourceFile ) : GlideImage

Method Details

create() public static method

public static create ( string $sourceFile ) : GlideImage
$sourceFile string
return GlideImage

modify() public method

public modify ( array $modificationParameters ) : GlideImage
$modificationParameters array
return GlideImage

save() public method

public save ( string $outputFile ) : string
$outputFile string
return string

setSourceFile() public method

public setSourceFile ( string $sourceFile ) : GlideImage
$sourceFile string
return GlideImage

Property Details

$modificationParameters protected_oe property

The modification the need to be made on the image. Take a look at Glide's image API to see which parameters are possible. http://glide.thephpleague.com/1.0/api/quick-reference/
protected $modificationParameters

$sourceFile protected_oe property

The path to the input image.
protected $sourceFile