Skip to content

Sync gd 2 4#22532

Open
pierrejoye wants to merge 61 commits into
php:masterfrom
pierrejoye:SYNC_GD_2_4
Open

Sync gd 2 4#22532
pierrejoye wants to merge 61 commits into
php:masterfrom
pierrejoye:SYNC_GD_2_4

Conversation

@pierrejoye

@pierrejoye pierrejoye commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Sync php's libgd to current GD's master, which will be 2.4.0

New APIs

Updated/Fixed

  • Color Match improvement using Lab* + 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.

@pierrejoye

Copy link
Copy Markdown
Contributor Author

All new deps are available now and builds. All runners green. I like to merge that one already and do a separate PR for the ext/gd user-land 's additions. Is it ok?

@devnexen

devnexen commented Jul 3, 2026

Copy link
Copy Markdown
Member

I ll have a better look this week end

@pierrejoye

Copy link
Copy Markdown
Contributor Author

@devnexen thanks :)
Please note that this PR is 99.99% only updating ext/gd/libgd.

Only the autocrop is affected as the new correct one is in, it was barely usable before (square distance vs Lab* + Delta-E). and also corrected some wrong rendering font ni ft2 (tests covered the bug, bbox ones).

There is no new functions added yet. That's my plan for the next days. To make it for 8.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants