You are here

public function ImageToolkitInterface::getWidth in Drupal 8

Same name and namespace in other branches
  1. 9 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.

2 methods override ImageToolkitInterface::getWidth()
GDToolkit::getWidth in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Returns the width of the image.
TestToolkit::getWidth in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Returns the width of the image.

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();