From 7f7fe7279c7ec48f8e1a0dfb5808c8fff693dd18 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 9 Nov 2017 18:34:17 +0800 Subject: [PATCH] Images.php --- Images.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Images.php b/Images.php index d5d9c40e..c742af5f 100644 --- 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; -- 2.39.2