[php-src] PR #22532: Sync gd 2 4
| From: | pierrejoye | Date: | Wed, 01 Jul 2026 11:19:41 +0000 |
| Subject: | [php-src] PR #22532: Sync gd 2 4 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36755@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22532
Author: pierrejoye
# Sync php's libgd to current GD's master, which will be 2.4.0
New APIs
- 2D vector graphic APIs using FT raster (standalone version)
- ad gdImageRead* APIs, to read an image from a file/stream, codec selected using known binary
signature
- Codecs Added:
- QOI full support (bundled/no dep)
- JXL + JXL animation
- Webp animation
- Full TIFF support
- GIF animations read and write + Full GIF support
- BMP All formats but OS/2
- AVIF animation read and write
- UltraHDR support, using libultrahdr, read and write as standalone, or read SD image as gdImage
- for formats supporting it, raw metadata read/write APIs. can be then be processed and pushed
back)
Updated/Fixed
- Color Match improvement using L*a*b* + Delta-E and actual % as input
- Fix and improve freetype rendering and merge both php's libgd + libgd "new
encoding"
. Fix RAMQ rendering
- All codecs with conformance tests (upstream, C)
- Perceptual difference (upstream C, will be exposed so php's tests can rely on it
WIP:
This is the 1st phase, to ensure it builds correctly in php's CI. And hopefully the new deps
will be added as well.
The next phases is to expose the new APIs in php's.