]> granicus.if.org Git - php/commit
Fix #72913: imagecopy() loses single-color transparency on palette images
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 21 Aug 2016 15:39:23 +0000 (17:39 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 21 Aug 2016 15:39:23 +0000 (17:39 +0200)
commitd65adac2be2c9b32d9ad9bd00399c99d492502f5
tree92631fdc31e37ba16cb0e46a7310557bd1da4485
parent9eb5bbd8bd89caa29ba4fbeb2db27d3e4e05ed79
Fix #72913: imagecopy() loses single-color transparency on palette images

The proper code to handle true-color to palette copies is already contained
in gdImageCopy(), so we can simply remove the buggy duplicated code.
NEWS
ext/gd/libgd/gd.c
ext/gd/tests/bug72913.phpt [new file with mode: 0644]