You are here

public function FocalPointEffectBase::setOriginalImageSize in Focal Point 8

Set original image size.

Parameters

int $width: The original image width.

int $height: The original image height.

1 call to FocalPointEffectBase::setOriginalImageSize()
FocalPointEffectBase::applyEffect in src/FocalPointEffectBase.php
Applies an image effect to the image object.

File

src/FocalPointEffectBase.php, line 268

Class

FocalPointEffectBase
Provides a base class for image effects.

Namespace

Drupal\focal_point

Code

public function setOriginalImageSize($width, $height) {
  $this->originalImageSize = [
    'width' => $width,
    'height' => $height,
  ];
}