]> granicus.if.org Git - php/commit
Fixed bug #75124 (gdImageGrayScale() may produce colors)
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 27 Aug 2017 11:53:39 +0000 (13:53 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 27 Aug 2017 11:53:39 +0000 (13:53 +0200)
commit499f5480f1a9b3063097b53592c37329c1d5f6f8
treef0d73e88cf9d51071e9364b08ff2171d8763a6f3
parentbe9edd83c2b3119018611e178da0ee55f7b71c28
Fixed bug #75124 (gdImageGrayScale() may produce colors)

We have to make sure to avoid alpha-blending issues by explicitly
switching to `gdEffectReplace` and to restore the old value afterwards.

This is a port of <https://github.com/libgd/libgd/commit/a7a7ece>.
NEWS
ext/gd/libgd/gd_filter.c
ext/gd/tests/bug75124.phpt [new file with mode: 0644]
ext/gd/tests/bug75124.png [new file with mode: 0644]