Skip to content

Commit 0f40e62

Browse files
committed
Fix bug 68629: Transparent artifacts when using imagerotate
We port the respective upstream fix[1], which dropped the special cased implementations of fixed-point arithmetic rotation in favor of the generic implementation. We also port follow-up upstream fixes[2][3]. [1] <libgd/libgd@bd6d2e1> [2] <libgd/libgd@6d21d30> [3] <libgd/libgd@9df878a> Closes GH-17375.
1 parent e421a44 commit 0f40e62

File tree

4 files changed

+90
-426
lines changed

4 files changed

+90
-426
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ PHP NEWS
3232
- Enchant:
3333
. Added enchant_dict_remove_from_session(). (nielsdos)
3434

35+
-GD:
36+
. Fixed bug #68629 (Transparent artifacts when using imagerotate). (pierre,
37+
cmb)
38+
3539
- Intl:
3640
. Bumped ICU requirement to ICU >= 57.1. (cmb)
3741
. IntlDateFormatter::setTimeZone()/datefmt_set_timezone() throws an exception

ext/gd/libgd/gd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ typedef enum {
145145
GD_SINC,
146146
GD_TRIANGLE,
147147
GD_WEIGHTED4,
148-
GD_METHOD_COUNT = 21
148+
GD_LINEAR,
149+
GD_METHOD_COUNT = 22
149150
} gdInterpolationMethod;
150151

151152
/* define struct with name and func ptr and add it to gdImageStruct gdInterpolationMethod interpolation; */

0 commit comments

Comments
 (0)