From 8c4b22ca66b407cec5b368e00be45e4225b6073d Mon Sep 17 00:00:00 2001 From: Mikael Roos Date: Mon, 15 Dec 2014 17:45:21 +0100 Subject: [PATCH] Prepare to rewrite the resize-method with respect to no-upscale code. --- CImage.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CImage.php b/CImage.php index a2c6a42..3812ab5 100644 --- a/CImage.php +++ b/CImage.php @@ -1323,6 +1323,12 @@ class CImage $this->width = $this->crop['width']; $this->height = $this->crop['height']; } + + if (!$this->upscale) { + // Consider rewriting the no-upscale code to fit within this if-statement, + // likely to be more readable code. + // The code is more or leass equal in below crop-to-fit, fill-to-fit and stretch + } if ($this->cropToFit) {