pajoye Sat Nov 4 02:21:06 2006 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/gd/tests bug39273.phpt
Modified files:
/php-src/ext/gd/libgd gd.c
Log:
- #39273, imagecopyresized and alpha channel
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1.2.2&r2=1.90.2.1.2.3&diff_format=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.90.2.1.2.2
php-src/ext/gd/libgd/gd.c:1.90.2.1.2.3
--- php-src/ext/gd/libgd/gd.c:1.90.2.1.2.2 Thu Sep 28 08:48:02 2006
+++ php-src/ext/gd/libgd/gd.c Sat Nov 4 02:21:06 2006
@@ -754,7 +754,7 @@
int p = gdImageGetPixel(im, x, y);
if (!im->trueColor) {
- return gdTrueColorAlpha(im->red[p], im->green[p], im->blue[p],
(im->transparent == p) ? gdAlphaTransparent : gdAlphaOpaque);
+ return gdTrueColorAlpha(im->red[p], im->green[p], im->blue[p],
(im->transparent == p) ? gdAlphaTransparent : im->alpha[p]);
} else {
return p;
}
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/bug39273.phpt?view=markup&rev=1.1
Index: php-src/ext/gd/tests/bug39273.phpt
+++ php-src/ext/gd/tests/bug39273.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php