You are here

protected property AbstractAutomatedCrop::$delta in Automated Crop 8

The delta obtained by dividing the height by width.

This delta are mandatory to process enlargement/reduction without ratio, destruction. If the aspect ratio are defined the delta are based on your, given ratio, if not we calculate the GCD of your originalImage and, calculate, the ratio. This you can obtained same result by the following, calculation `(original height / original width) x new width = new height`.

Type: int|float

File

src/AbstractAutomatedCrop.php, line 94

Class

AbstractAutomatedCrop
Provides a base class for each AutomatedCrop provider plugins.

Namespace

Drupal\automated_crop

Code

protected $delta;