public function ImagemagickToolkit::isValid in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::isValid()
- 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::isValid()
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/ ImagemagickToolkit.php, line 614
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function isValid() {
return (bool) $this
->getMimeType();
}