public static function GDToolkitWebP::isAvailable in Picture 8
Verifies that the Image Toolkit is set up correctly.
Return value
bool TRUE if the toolkit is available on this machine, FALSE otherwise.
Overrides GDToolkit::isAvailable
File
- src/
Plugin/ ImageToolkit/ GDToolkitWebP.php, line 195 - Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit.
Class
- GDToolkitWebP
- Defines the GD2 toolkit for image manipulation within Drupal.
Namespace
Drupal\picture\Plugin\ImageToolkitCode
public static function isAvailable() {
// GD2 support is available.
return version_compare(PHP_VERSION, '5.5.0') > 0 && function_exists('imagegd2');
}