diff --git a/CImage.php b/CImage.php index c7a233b..3f8e3c8 100644 --- a/CImage.php +++ b/CImage.php @@ -1098,6 +1098,11 @@ class CImage $this->newWidth = round($factor * $width); $this->log("New height was set."); + } else { + + // Use existing width and height as new width and height. + $this->newWidth = $width; + $this->newHeight = $height; } diff --git a/REVISION.md b/REVISION.md index 76aaabd..218469e 100644 --- a/REVISION.md +++ b/REVISION.md @@ -8,6 +8,7 @@ Revision history v0.7.12 (2016-05-31) ------------------------------------- +* Fixed to correctly display image when using a resize strategy without height or width. * Fixed background color for option `no-upscale`, #144.