function GDToolkit::getType

Same name and namespace in other branches
  1. 9 core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::getType()
  2. 8.9.x core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::getType()
  3. 11.x core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::getType()

Gets the PHP type of the image.

Return value

int The image type represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG).

4 calls to GDToolkit::getType()
GDToolkit::getMimeType in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Returns the MIME type of the image file.
GDToolkit::getTransparentColor in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Gets the color set for transparency in GIF images.
GDToolkit::load in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Loads an image from a file.
GDToolkit::save in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Writes an image resource to a destination file.

File

core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php, line 463

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

public function getType() {
    return $this->type;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.