mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-02 22:27:44 +02:00
Prepare to rewrite the resize-method with respect to no-upscale code.
This commit is contained in:
@@ -1324,6 +1324,12 @@ class CImage
|
|||||||
$this->height = $this->crop['height'];
|
$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) {
|
if ($this->cropToFit) {
|
||||||
|
|
||||||
// Resize by crop to fit
|
// Resize by crop to fit
|
||||||
|
Reference in New Issue
Block a user