projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d79064
)
Images.php
author
edward
<edward@roojs.com>
Thu, 9 Nov 2017 10:34:17 +0000
(18:34 +0800)
committer
edward
<edward@roojs.com>
Thu, 9 Nov 2017 10:34:17 +0000
(18:34 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
d5d9c40
..
c742af5
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-302,7
+302,12
@@
class Pman_Core_Images extends Pman
$this->validateSize();
}
- $x->convert( $this->as_mimetype, $this->size);
+ if(!empty($this->page)){
+ $x->convert( $this->as_mimetype, $this->size, 0, $this->page);
+ } else {
+ $x->convert( $this->as_mimetype, $this->size);
+ }
+
$x->serve();
exit;