public function AutomatedCropInterface::setDelta in Automated Crop 8
Calculate and set the delta to apply of each size calculation of cropBox.
The delta are important to apply enlargement/reduction without loose, aspect ratio. This is the result of height divide by width (H / W) by, default this is calculated from the aspect ratio of image but you can, also calculate it like (originalImageHeight / OriginalImageWidth).
Return value
self AutomatedCrop plugin object.
1 method overrides AutomatedCropInterface::setDelta()
- AbstractAutomatedCrop::setDelta in src/
AbstractAutomatedCrop.php - Calculate and set the delta to apply of each size calculation of cropBox.
File
- src/
AutomatedCropInterface.php, line 162
Class
- AutomatedCropInterface
- Provides an interface defining the AutomatedCrop plugin objects.
Namespace
Drupal\automated_cropCode
public function setDelta();