Images.php
authoredward <edward@roojs.com>
Thu, 9 Nov 2017 10:34:17 +0000 (18:34 +0800)
committeredward <edward@roojs.com>
Thu, 9 Nov 2017 10:34:17 +0000 (18:34 +0800)
Images.php

index d5d9c40..c742af5 100644 (file)
@@ -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;