public function AbstractAutomatedCrop::setAutoCropArea in Automated Crop 8
Define the percentage of automatic cropping area when initializes.
This method is useful to zoom with mobile/retina images.
Parameters
int|float $num: The percentage of automatic cropping area.
Return value
self AutomatedCrop plugin object.
Overrides AutomatedCropInterface::setAutoCropArea
File
- src/
AbstractAutomatedCrop.php, line 338
Class
- AbstractAutomatedCrop
- Provides a base class for each AutomatedCrop provider plugins.
Namespace
Drupal\automated_cropCode
public function setAutoCropArea($num) {
$this->autoCropArea = $num;
return $this;
}