projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d552c93
)
DataObjects/Images.php
author
Edward
<edward@roojs.com>
Fri, 12 Oct 2018 03:03:21 +0000
(11:03 +0800)
committer
Edward
<edward@roojs.com>
Fri, 12 Oct 2018 03:03:21 +0000
(11:03 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
ee2b3fa
..
8d9a7ac
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-871,6
+871,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
// }
if($rotate){
+ $data = $this->rotate();
$data = $this->rotate($data);
}
@@
-919,7
+920,7
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
}
$orientation = $imagick->getImageOrientation();
- print_R($orientation);exit;
+
switch($orientation) {
case Imagick::ORIENTATION_BOTTOMRIGHT:
$imagick->rotateimage(new ImagickPixel('#00000000'), 180); // rotate 180 degrees