Lines Matching defs:orientation
48 $orientation = 1;
54 $orientation = $exif['Orientation'];
62 $orientation = ord($matches[1]);
65 $orientation = ord($matches[1]);
69 return $this->rotate($orientation);
76 public function rotate($orientation)
78 $orientation = (int)$orientation;
79 if ($orientation < 0 || $orientation > 8) {
83 if ($orientation <= 1) {
92 if (in_array($orientation, [3, 4])) {
95 if (in_array($orientation, [5, 6])) {
98 } elseif (in_array($orientation, [7, 8])) {
105 if (in_array($orientation, [2, 5, 7, 4])) {