reference/image/configure.xml
9ba738103b63ee4f129dadf3f8585568609e63b7
...
...
@@ -10,10 +10,16 @@
10
10
<option role="configure">--with-gd</option>.
11
11
GD library requires <productname>libpng</productname> and
12
12
<productname>libjpeg</productname> to compile.
13
+
As of PHP 7.4.0, <option role="configure">--with-gd</option> becomes
14
+
<option role="configure">--enable-gd</option> (whether to enable the
15
+
extension at all) and <option role="configure">--with-external-gd</option>
16
+
(to opt into using an external <productname>libgd</productname>, rather than
17
+
the bundled one).
13
18
</para>
14
19
<para>
15
-
In Windows, you'll include the GD2 DLL <filename>php_gd2.dll</filename> as
20
+
In Windows, you'll include the GD DLL <filename>php_gd.dll</filename> as
16
21
an extension in &php.ini;.
22
+
Prior to PHP 8.0.0, the DLL was named <filename>php_gd2.dll</filename>.
17
23
</para>
18
24

19
25
<para>
...
...
@@ -31,11 +37,21 @@
31
37
</thead>
32
38
<tbody>
33
39
<row>
40
+
<entry><literal>avif</literal></entry>
41
+
<entry>
42
+
To enable support for avif add
43
+
<option role="configure">--with-avif</option>.
44
+
Available as of PHP 8.1.0.
45
+
</entry>
46
+
</row>
47
+
<row>
34
48
<entry><literal>jpeg</literal></entry>
35
49
<entry>
36
50
To enable support for jpeg add
37
51
<option role="configure">--with-jpeg-dir=DIR</option>. Jpeg 6b, 7 or 8
38
52
are supported.
53
+
As of PHP 7.4.0, use <option role="configure">--with-jpeg</option>
54
+
instead.
39
55
</entry>
40
56
</row>
41
57
<row>
...
...
@@ -46,6 +62,10 @@
46
62
requires the <link linkend="zlib.requirements">zlib library</link>,
47
63
therefore add <option role="configure">--with-zlib-dir[=DIR]</option>
48
64
to your configure line.
65
+
As of PHP 7.4.0, <option role="configure">--with-png-dir</option> and
66
+
<option role="configure">--with-zlib-dir</option> have been removed.
67
+
<productname>libpng</productname> and <productname>zlib</productname>
68
+
are required.
49
69
</entry>
50
70
</row>
51
71
<row>
...
...
@@ -55,16 +75,16 @@
55
75
<option role="configure">--with-xpm-dir=DIR</option>. If configure
56
76
is not able to find the required libraries, you may add the path to
57
77
your X11 libraries.
78
+
As of PHP 7.4.0, use <option role="configure">--with-xpm</option>
79
+
instead.
58
80
</entry>
59
81
</row>
60
82
<row>
61
83
<entry><literal>webp</literal></entry>
62
84
<entry>
63
-
To enable support for webp add
64
-
<option role="configure">--with-vpx-dir=DIR</option>. Available as of PHP
65
-
5.5.
66
-
As of PHP 7.0.0 <option role="configure">--with-webp-dir=DIR</option> has
67
-
to be added, i.e. support for libvpx has been removed in favor of libwebp.
85
+
To enable support for webp add <option role="configure">--with-webp-dir=DIR</option>.
86
+
As of PHP 7.4.0, use <option role="configure">--with-webp</option>
87
+
instead.
68
88
</entry>
69
89
</row>
70
90
</tbody>
...
...
@@ -96,14 +116,8 @@
96
116
<entry>
97
117
To enable support for FreeType 2 add
98
118
<option role="configure">--with-freetype-dir=DIR</option>.
99
-
</entry>
100
-
</row>
101
-
<row>
102
-
<entry><literal>T1lib</literal></entry>
103
-
<entry>
104
-
To enable support for T1lib (Postscript Type 1 fonts) add
105
-
<option role="configure">--with-t1lib[=DIR]</option> (Removed
106
-
as of PHP 7.0.0).
119
+
As of PHP 7.4.0 use <option role="configure">--with-freetype</option>
120
+
instead, which relies on <productname>pkg-config</productname>.
107
121
</entry>
108
122
</row>
109
123
<row>
...
...
@@ -111,6 +125,7 @@
111
125
<entry>
112
126
To enable support for native TrueType string function add
113
127
<option role="configure">--enable-gd-native-ttf</option>.
128
+
(This option has no effect and has been removed as of PHP 7.2.0.)
114
129
</entry>
115
130
</row>
116
131
</tbody>
117
132