Faster_Image_B52f1a8_Exif_Parser::isRotated PHP Метод

isRotated() публичный Метод

public isRotated ( ) : boolean
Результат boolean
    public function isRotated()
    {
        return !empty($this->orientation) && $this->orientation >= 5;
    }

Usage Example

 /**
  * @return array|bool
  * @throws \FasterImage\Exception\InvalidImageException
  * @throws StreamBufferTooSmallException
  */
 protected function parseSizeForTiff()
 {
     $exif = new Faster_Image_B52f1a8_Exif_Parser($this->stream);
     if ($exif->isRotated()) {
         return [$exif->getHeight(), $exif->getWidth()];
     }
     return [$exif->getWidth(), $exif->getHeight()];
 }