You are here

public function GDToolkit::getType in Drupal 9

Same name and namespace in other branches
  1. 8 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 a GD resource 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 361

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

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