You are here

public function FocalPointEffectBase::getOriginalImageSize in Focal Point 8

Return the original image dimensions.

Return value

array An array with keys 'width' and 'height'.

3 calls to FocalPointEffectBase::getOriginalImageSize()
FocalPointEffectBase::getOriginalFocalPoint in src/FocalPointEffectBase.php
Returns the focal point value (in pixels) relative to the original image.
FocalPointEffectBase::transformFocalPoint in src/FocalPointEffectBase.php
Returns the focal point value (in pixels) relative to the provided image.
FocalPointScaleAndCropImageEffect::applyEffect in src/Plugin/ImageEffect/FocalPointScaleAndCropImageEffect.php
Applies an image effect to the image object.

File

src/FocalPointEffectBase.php, line 281

Class

FocalPointEffectBase
Provides a base class for image effects.

Namespace

Drupal\focal_point

Code

public function getOriginalImageSize() {

  // @todo: check if originalImageSize exists and if not throw an exception.
  return $this->originalImageSize;
}