1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-24 18:21:48 +02:00

Prepare to rewrite the resize-method with respect to no-upscale code.

This commit is contained in:
Mikael Roos
2014-12-15 17:45:21 +01:00
parent d509067759
commit 8c4b22ca66

View File

@@ -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) {