]> granicus.if.org Git - php/commit
Fix #66882: imagerotate by -90 degrees truncates image by 1px
authorChristoph M. Becker <cmb@php.net>
Mon, 13 Jul 2015 20:14:13 +0000 (22:14 +0200)
committerChristoph M. Becker <cmb@php.net>
Mon, 13 Jul 2015 20:18:56 +0000 (22:18 +0200)
commit2e34febb733742baf130a9dae4f30f48ffe74d48
tree80c0d508d68f1d2f23e2574704dfb9ce76513cd8
parent72c2fc44e0fb0484ade1ce89da8084dd89714e1c
Fix #66882: imagerotate by -90 degrees truncates image by 1px

Contrary to the external libgd, the bundled libgd doesn't use optimized
rotation algorithms for negative square angles. We fix that now.

There are other improvements in gdImageRotateInterpolated() in the external
libgd. I'll leave them out for now, in the hope that we'll be able to rejoin
the two libraries rather soon.
ext/gd/libgd/gd_interpolation.c
ext/gd/tests/bug66882.phpt [new file with mode: 0644]