diff --git a/reference/image/functions/imagescale.xml b/reference/image/functions/imagescale.xml index e889bde8fd..d00d760101 100644 --- a/reference/image/functions/imagescale.xml +++ b/reference/image/functions/imagescale.xml @@ -17,11 +17,9 @@ intmodeIMG_BILINEAR_FIXED - + imagescale scales an image using the given + interpolation algorithm. - - &warn.undocumented.func; - @@ -32,7 +30,7 @@ new_width - + The width to scale the image to. @@ -40,8 +38,15 @@ new_height - + The height to scale the image to. If omitted or negative, the aspect + ratio will be preserved. + + + You should always provide the height if using PHP 5.5.18 or earlier, or + PHP 5.6.2 or earlier, as the aspect ratio calculation was incorrect. + + @@ -62,10 +67,35 @@ &reftitle.returnvalues; - Return scaled image resource on success&return.falseforfailure;. + Return the scaled image resource on success&return.falseforfailure;. + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.5.19/5.6.3 + + The calculation of the height if new_height was + negative or omitted was fixed; prior to these versions, the aspect + ratio was not maintained correctly. + + + + + + +