You are here

protected static function GDToolkitWebP::supportedTypes in Picture 8

Returns a list of image types supported by the toolkit.

Return value

array An array of available image types. An image type is represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG, IMAGETYPE_PNG, etc.).

Overrides GDToolkit::supportedTypes

3 calls to GDToolkitWebP::supportedTypes()
GDToolkitWebP::extensionToImageType in src/Plugin/ImageToolkit/GDToolkitWebP.php
Returns the IMAGETYPE_xxx constant for the given extension.
GDToolkitWebP::getSupportedExtensions in src/Plugin/ImageToolkit/GDToolkitWebP.php
Returns a list of image file extensions supported by the toolkit.
GDToolkitWebP::parseFile in src/Plugin/ImageToolkit/GDToolkitWebP.php
Determines if a file contains a valid image.

File

src/Plugin/ImageToolkit/GDToolkitWebP.php, line 234
Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit.

Class

GDToolkitWebP
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\picture\Plugin\ImageToolkit

Code

protected static function supportedTypes() {
  return array(
    IMAGETYPE_PNG,
    IMAGETYPE_JPEG,
    IMAGETYPE_GIF,
    GDToolkitWebP::IMAGETYPE_WEBP,
  );
}