1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-04-21 01:11:54 +02:00

Fixed to correctly display image when using a resize strategy without height or width.

This commit is contained in:
Mikael Roos 2016-06-01 09:31:28 +02:00
parent 9088647d3a
commit 9e9c44c935
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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.