projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
de20338
)
DataObjects/Images.php
author
Edward
<edward@roojs.com>
Fri, 12 Oct 2018 03:02:39 +0000
(11:02 +0800)
committer
Edward
<edward@roojs.com>
Fri, 12 Oct 2018 03:02:39 +0000
(11:02 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
82f3a9a
..
b5894ef
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-919,7
+919,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
@@
-937,4
+937,9
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
return $imagick->getImageBlob();
}
+ function scale($width, $height)
+ {
+
+ }
+
}