public function FocalPointCropImageEffect::applyEffect in Focal Point 8
@codeCoverageIgnore
Overrides FocalPointEffectBase::applyEffect
File
- src/
Plugin/ ImageEffect/ FocalPointCropImageEffect.php, line 24  
Class
- FocalPointCropImageEffect
 - Crops image while keeping its focal point as close to centered as possible.
 
Namespace
Drupal\focal_point\Plugin\ImageEffectCode
public function applyEffect(ImageInterface $image) {
  parent::applyEffect($image);
  $crop = $this
    ->getCrop($image);
  return $this
    ->applyCrop($image, $crop);
}