[php-src] PR #17374: Fix GH-17373: imagefttext() ignores clipping rect for palette images
| From: | cmb69 | Date: | Mon, 06 Jan 2025 01:10:49 +0000 |
| Subject: | [php-src] PR #17374: Fix GH-17373: imagefttext() ignores clipping rect for palette images | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30265@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17374
Author: cmb69
We apply the same fix that has been applied to external libgd at least as of 2.0.29.
To avoid issues regarding minor FreeType rendering differences, the test case does not compare
against an image, but rather checks that all pixels outside the clipping rect have the background
color.