Bug #71423 [NEW]: Misrepresentation

From: Date: Wed, 20 Jan 2016 17:56:51 +0000
Subject: Bug #71423 [NEW]: Misrepresentation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198805@lists.php.net to get a copy of this message
From: xxalfa at gmail dot com Operating system: Mac OS X 10.11.2 PHP version: 7.0.2 Package: GD related Bug Type: Bug Bug description:Misrepresentation Description: ------------ --- From manual page: http://www.php.net/function.imagescale --- I would like to use this function, just do not do what I expect. Test script: --------------- $old_width = imagesx( $image_resource ); $old_height = imagesy( $image_resource ); $percent = 10; $new_width = $width * $percent; $new_height = $height * $percent; // BLURRED $new_image_resource = imagescale( $image_resource, $new_width, $new_height ); // THE IMAGE IS SHARP NOW, BUT HAS A BLACK BORDER ON THE LEFT AND BELOW. $new_image_resource = imagescale( $image_resource, $new_width, $new_height, IMG_BILINEAR_FIXED | IMG_BICUBIC_FIXED ); // CREATES A CLEAN MAGNIFICATION. $new_image_resource = imagecreatetruecolor( $new_width, $new_height ); imagecopyresized( $new_image_resource, $image_resource, 0, 0, 0, 0, $new_width, $new_height, $old_width, $old_height ); -- Edit bug report at https://bugs.php.net/bug.php?id=71423&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71423&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71423&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71423&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71423&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71423&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71423&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71423&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71423&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71423&r=support Expected behavior: https://bugs.php.net/fix.php?id=71423&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71423&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71423&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71423&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71423&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71423&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71423&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71423&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71423&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71423&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71423&r=mysqlcfg

« previous php.bugs (#198805) next »