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:
@@ -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) {
|
||||
|
||||
|
Reference in New Issue
Block a user