function ImageToolkitInterface::getWidth

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::getWidth()
  2. 10 core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::getWidth()
  3. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php \Drupal\Core\ImageToolkit\ImageToolkitInterface::getWidth()

Returns the width of the image.

Return value

int|null The width of the image, or NULL if the image is invalid.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.php, line 118

Class

ImageToolkitInterface
Defines an interface for image toolkits.

Namespace

Drupal\Core\ImageToolkit

Code

public function getWidth();

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