Req #66887 [NEW]: imagescale - poor quality of scaled image

From: Date: Wed, 12 Mar 2014 08:23:11 +0000
Subject: Req #66887 [NEW]: imagescale - poor quality of scaled image
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184736@lists.php.net to get a copy of this message
From: mruz at poczta dot onet dot pl Operating system: openSUSE 13.1 PHP version: 5.5.10 Package: GD related Bug Type: Feature/Change Request Bug description:imagescale - poor quality of scaled image Description: ------------ Is it intended behavior that the quality of http://www.php.net/function.imagescale is much worse than http://www.php.net/function.imagecopyresampled ? I'm using PHP 5.5.9, but see in the PHP 5.5.10 changelog nothing on this issuse was changed. Test script: --------------- $oryginal = imagecreatefromjpeg('test.jpg'); $img = imagecreatetruecolor(300, 200); imagecopyresized($img, $oryginal, 0, 0, 0, 0, 300, 200, 600, 400); imagejpeg($img, 'test1.jpg', 90); echo '<img src="test1.jpg" /><br />'; $img = imagescale($oryginal, 300, 200); imagejpeg($img, 'test2.jpg', 90); echo '<img src="test2.jpg" /><br />'; -- Edit bug report at https://bugs.php.net/bug.php?id=66887&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66887&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66887&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66887&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66887&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66887&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66887&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66887&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66887&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66887&r=support Expected behavior: https://bugs.php.net/fix.php?id=66887&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66887&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66887&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66887&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66887&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66887&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66887&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66887&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66887&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66887&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66887&r=mysqlcfg

« previous php.bugs (#184736) next »