Req #66887 [Fbk->Csd]: imagescale - poor quality of scaled image
| From: | remi@php.net | Date: | Wed, 12 Mar 2014 16:16:25 +0000 |
| Subject: | Req #66887 [Fbk->Csd]: imagescale - poor quality of scaled image | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184762@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66887&edit=1
ID: 66887
Updated by: remi@php.net
Reported by: mruz at poczta dot onet dot pl
Summary: imagescale - poor quality of scaled image
-Status: Feedback
+Status: Closed
Type: Feature/Change Request
Package: GD related
Operating System: openSUSE 13.1
PHP Version: 5.5.10
Assigned To: remi
Block user comment: N
Private report: N
New Comment:
Fixed in http://git.php.net/?p=php-src.git;a=commitdiff;h=862c006da178e3bb2a247b76b19d72d338efc0bd
Previous Comments:
------------------------------------------------------------------------
[2014-03-12 14:49:35] mruz at poczta dot onet dot pl
Thanks, I did update the tmp images, if anyone would like to see them:
http://mruz.pl/test/tmp4.jpg (IMG_BILINEAR_FIXED)
------------------------------------------------------------------------
[2014-03-12 14:31:47] remi@php.net
New bug #66893 open for ignored parameter.
Keeping this one for "poor quality" using default / IMG_BILINEAR_FIXED method.
------------------------------------------------------------------------
[2014-03-12 14:24:06] mruz at poczta dot onet dot pl
Yes, if I run imagesetinterpolation before imagescale it works fine.
In this case IMG_BILINEAR_FIXED and IMG_WEIGHTED4 not look nice, the rest of the algorithms is OK.
------------------------------------------------------------------------
[2014-03-12 13:54:12] remi@php.net
Can you try with
imagesetinterpolation($oryginal, $alg);
$img = imagescale($oryginal, 600, 400);
$alg option of imagescale is ignored (yes, this is a "goto fail;" bug)
It seems IMG_BILINEAR_FIXED produce this bad quality image.
IMG_BICUBIC_FIXED and IMG_NEAREST_NEIGHBOUR seems to work better.
------------------------------------------------------------------------
[2014-03-12 11:18:16] mruz at poczta dot onet dot pl
Bundled, x86_64
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66887
--
Edit this bug report at https://bugs.php.net/bug.php?id=66887&edit=1