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.
Afficher le fichier
Open project: tippingcanoe/imager
Protected Properties
Méthodes publiques
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 méthode
setOriginLeft()
public méthode
setOriginTop()
public méthode
setPreserveRatio()
public méthode
setSection()
public méthode
setWidth()
public méthode
Property Details
$height protected_oe property
protected int $height |
Résultat |
integer |
|
$originLeft protected_oe property
protected int $originLeft |
Résultat |
integer |
|
$originTop protected_oe property
protected int $originTop |
Résultat |
integer |
|
$section protected_oe property
protected string $section |
Résultat |
string |
|
$sections protected_oe property
protected array $sections |
Résultat |
array |
|
$width protected_oe property
protected int $width |
Résultat |
integer |
|