@@ -20,15 +20,15 @@ |
||
20 | 20 | private function get_orientation($path) { |
21 | 21 | if (!file_exists($path)) { return false; } |
22 | 22 | try { |
23 | - $exif_data = @exif_read_data($path); |
|
24 | - $orientation = !empty($exif_data['Orientation']) ? $exif_data['Orientation'] : null; |
|
23 | + $exif_data = @exif_read_data($path); |
|
24 | + $orientation = !empty($exif_data['Orientation']) ? $exif_data['Orientation'] : null; |
|
25 | 25 | /** |
26 | 26 | * this image will help you understand the orientation and the difference between encoded and printed |
27 | 27 | * http://www.kendawson.ca/wp-content/uploads/orient_flag2.gif |
28 | 28 | */ |
29 | 29 | return $orientation == 1 ? false : $orientation; |
30 | 30 | } catch (Exception $e) { |
31 | - return false; |
|
31 | + return false; |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 |