function GDToolkit::getType
Same name in other branches
- 9 core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::getType()
- 8.9.x core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::getType()
- 10 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 385
Class
- GDToolkit
- Defines the GD2 toolkit for image manipulation within Drupal.
Namespace
Drupal\system\Plugin\ImageToolkitCode
public function getType() {
return $this->type;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.