mirror of
https://github.com/php/php-src.git
synced 2025-01-23 20:23:31 +08:00
c696bc8cfa
The recently introduced test_image_equals_file() doesn't properly work for palette images, because in this case only the palette indexes are compared, what can lead to false positives and negatives as shown in the added test. To fix that we convert palette images to truecolor, what is supposed to be faster than calling imagecolorsforindex() for each pixel. We furthermore rely on PHP's refcounting to free unused images; after all, this is not C. |
||
---|---|---|
.. | ||
libgd | ||
tests | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
gd_compat.c | ||
gd_compat.h | ||
gd_ctx.c | ||
gd.c | ||
gd.dsp | ||
gdcache.c | ||
gdcache.h | ||
php_gd.h |