You are here

public function ImagemagickToolkit::getExifOrientation in ImageMagick 8

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

Gets the source EXIF orientation.

Return value

integer The source EXIF orientation.

File

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

Class

ImagemagickToolkit
Provides ImageMagick integration toolkit for image manipulation.

Namespace

Drupal\imagemagick\Plugin\ImageToolkit

Code

public function getExifOrientation() {
  if (empty($this->exifInfo)) {
    $this
      ->parseExifData();
  }
  return isset($this->exifInfo['Orientation']) ? $this->exifInfo['Orientation'] : NULL;
}