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