Skip to content

Commit 4ddc792

Browse files
committed
PHP 8.1 | MigrationGuide/New constants: add missing constants [2]
> GD: > * Avif support is now available through the `imagecreatefromavif()` and > `imageavif()` functions, if libgd has been built with avif support. While not mentioned in the changelog entry, the commit to PHP does contain a new constant declaration... Refs: * https://github.com/php/php-src/blob/f67986a9218f4889d9352a87c29337a5b6eaa4bd/UPGRADING#L245-L247 * php/php-src#7026 * php/php-src@81f6d36#diff-00d1efef2247b288c86a6c3bfefac111a4774fbc5453fdc02dcf36c4a23da283R373 > GD: > * `imagewebp()` can do lossless WebP encoding by passing `IMG_WEBP_LOSSLESS` as > quality. This constant is only defined, if a libgd is used which supports > lossless WebP encoding. Refs: * https://github.com/php/php-src/blob/3a71fcf5caf042a4ce8a586a6b554fd70432e1e2/UPGRADING#L568-L571 * php/php-src#7348 * php/php-src@eb6c9eb
1 parent bc5d18a commit 4ddc792

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

appendices/migration81/constants.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@
3333
</itemizedlist>
3434
</sect2>
3535

36+
<sect2 xml:id="migration81.constants.gd">
37+
<title>GD</title>
38+
39+
<itemizedlist>
40+
<listitem>
41+
<simpara><constant>IMG_AVIF</constant></simpara>
42+
</listitem>
43+
<listitem>
44+
<simpara><constant>IMG_WEBP_LOSSLESS</constant></simpara>
45+
</listitem>
46+
</itemizedlist>
47+
</sect2>
48+
3649
<sect2 xml:id="migration81.constants.mysqli">
3750
<title>MySQLi</title>
3851

0 commit comments

Comments
 (0)