You are here

public function ImagickToolkit::isValid in Imagick 8

Checks if the image is valid.

Return value

bool TRUE if the image toolkit is currently handling a valid image, FALSE otherwise.

Overrides ImageToolkitInterface::isValid

File

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

Class

ImagickToolkit
Defines the Imagick toolkit for image manipulation within Drupal.

Namespace

Drupal\imagick\Plugin\ImageToolkit

Code

public function isValid() {
  return (bool) $this
    ->getPath();
}