You are here

public function ImagickToolkit::getHeight in Imagick 8

Returns the height of the image.

Return value

int|null The height of the image, or NULL if the image is invalid.

Overrides ImageToolkitInterface::getHeight

File

src/Plugin/ImageToolkit/ImagickToolkit.php, line 213

Class

ImagickToolkit
Defines the Imagick toolkit for image manipulation within Drupal.

Namespace

Drupal\imagick\Plugin\ImageToolkit

Code

public function getHeight() {
  if (!$this
    ->getResource()) {
    return NULL;
  }
  return $this
    ->getResource()
    ->getImageGeometry()['height'];
}