From c5f1d257e1a51476b28fb220cfff2c5dd5e1232f Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 7 Nov 2014 10:16:20 +0000 Subject: [PATCH] Note the fix for bug #65171, and generally flesh out the imagescale() docs. Fixes doc bug #68239 (Incorrect documentation or library bug). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335164 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/imagescale.xml | 44 ++++++++++++++++++++---- 1 file changed, 37 insertions(+), 7 deletions(-) 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. + + + + + + +