From e5e8ac7f60902ae6ef415a0e8d6321765d8ba805 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 24 May 2021 14:03:00 +0800 Subject: [PATCH] fix serve only for non-thumbs --- Images.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Images.php b/Images.php index bfda2826..884d88ab 100644 --- a/Images.php +++ b/Images.php @@ -297,6 +297,10 @@ class Pman_Core_Images extends Pman $this->as_mimetype = $img->mimetype; } if (!$this->thumb) { + if ($x->mimetype == $this->as_mimetype) { + $x->serveOnly($this->method); + exit; + } $x->convert( $this->as_mimetype); $x->serve($this->method); exit; -- 2.39.2