You are here

public function ImagemagickToolkit::getWidth in ImageMagick 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::getWidth()
  2. 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::getWidth()

Returns the width of the image.

Return value

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

Overrides ImageToolkitInterface::getWidth

File

src/Plugin/ImageToolkit/ImagemagickToolkit.php, line 985

Class

ImagemagickToolkit
Provides ImageMagick integration toolkit for image manipulation.

Namespace

Drupal\imagemagick\Plugin\ImageToolkit

Code

public function getWidth() {
  return $this->width;
}