Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GDToolkit.php

function GDToolkit::getImage

Retrieves the image.

Return value

\GdImage|null The GD image object, or NULL if not available.

5 calls to GDToolkit::getImage()
GDToolkit::getHeight in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Returns the height of the image.
GDToolkit::getTransparentColor in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Gets the color set for transparency in GIF images.
GDToolkit::getWidth in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Returns the width of the image.
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 136

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

public function getImage() : ?\GdImage {
    if (!$this->image) {
        $this->load();
    }
    return $this->image;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal