@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | //if (extension_loaded('gd') && function_exists('gd_info')) { |
5 | 5 | //if(extension_loaded('imagick')) { |
6 | 6 | |
7 | - public function updateCMSFields( FieldList $fields ) { |
|
7 | + public function updateCMSFields(FieldList $fields) { |
|
8 | 8 | $path = $this->owner->getFullPath(); |
9 | 9 | $orientation = $this->get_orientation($path); |
10 | 10 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $imagick = new Imagick($imagePath); |
39 | 39 | $imagick->setImageOrientation(imagick::ORIENTATION_TOPLEFT); |
40 | 40 | $deg = 0; |
41 | - switch($orientation) { |
|
41 | + switch ($orientation) { |
|
42 | 42 | case 3: |
43 | 43 | $deg = -180; |
44 | 44 | break; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | return false; |
72 | 72 | } |
73 | 73 | |
74 | - switch($orientation) { |
|
74 | + switch ($orientation) { |
|
75 | 75 | case 3: |
76 | 76 | $image = imagerotate($image, 180, 0); |
77 | 77 | break; |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('IMAGEORIENTATIONFIXER_DIR',basename(dirname(__FILE__))); |
|
4 | 3 | \ No newline at end of file |
4 | +define('IMAGEORIENTATIONFIXER_DIR', basename(dirname(__FILE__))); |
|
5 | 5 | \ No newline at end of file |