You are here

private function FocusScaleCropImageEffect::getImageEntropy in Image Focus Crop 8

Method getImageEntropy.

Parameters

mixed $resource: Resource.

Return value

array Return array.

1 call to FocusScaleCropImageEffect::getImageEntropy()
FocusScaleCropImageEffect::getFocalPoint in src/Plugin/ImageEffect/FocusScaleCropImageEffect.php
Method getFocalPoint.

File

src/Plugin/ImageEffect/FocusScaleCropImageEffect.php, line 96

Class

FocusScaleCropImageEffect
Crops with focus an image resource.

Namespace

Drupal\image_focus\Plugin\ImageEffect

Code

private function getImageEntropy($resource) {
  $entropy = new ImageFocusEntropy($resource);
  return $entropy
    ->getFocalPoint();
}