projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe26ec6
)
DataObjects/Images.php
author
Edward
<edward@roojs.com>
Tue, 21 Aug 2018 13:38:50 +0000
(21:38 +0800)
committer
Edward
<edward@roojs.com>
Tue, 21 Aug 2018 13:38:50 +0000
(21:38 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
aafd08e
..
c778b52
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-865,19
+865,9
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
return $page;
}
return $page;
}
- function rotate(
$blob = false
)
+ function rotate()
{
{
- if(empty($this->id) && !$blob){
- return false;
- }
-
- $imagick = new Imagick();
-
- if(!empty($this->id)){
- $imagick->readimage($this->getStoreName());
- } else {
- $imagick->readImageBlob($blob);
- }
+ $imagick = new Imagick($this->getStoreName());
$orientation = $imagick->getImageOrientation();
$orientation = $imagick->getImageOrientation();