PHP Class TippingCanoe\Imager\Processing\Crop
Allows cropping of an image. Defaults to center of image.
Can be given a relative starting point for the top-left origin of the crop to begin.
Datei anzeigen
Open project: tippingcanoe/imager
Protected Properties
Public Methods
Method Details
public process ( File $file, Image $image, array $config = null ) |
$file |
Symfony\Component\HttpFoundation\File\File |
|
$image |
TippingCanoe\Imager\Model\Image |
|
$config |
array |
|
setHeight()
public method
setOriginLeft()
public method
setOriginTop()
public method
setPreserveRatio()
public method
setSection()
public method
Property Details
$height protected_oe property
protected int $height |
return |
integer |
|
$originLeft protected_oe property
protected int $originLeft |
return |
integer |
|
$originTop protected_oe property
protected int $originTop |
return |
integer |
|
$section protected_oe property
protected string $section |
return |
string |
|
$sections protected_oe property
protected array $sections |
return |
array |
|
$width protected_oe property
protected int $width |
return |
integer |
|