Skip to content

ext/gd: Fix imagewebp() return value for palette images - #24466

Open
arshidkv12 wants to merge 3 commits into
php:PHP-8.4from
arshidkv12:gd-gdImageTrueColor-1
Open

arshidkv12 wants to merge 3 commits into
php:PHP-8.4from
arshidkv12:gd-gdImageTrueColor-1

Conversation

@arshidkv12

Copy link
Copy Markdown
Contributor

ext/gd: Fix imagewebp() return value for palette images

ext/gd: Fix imagewebp() return value for palette images

ext/gd: Fix imagewebp() return value for palette images
@arshidkv12
arshidkv12 force-pushed the gd-gdImageTrueColor-1 branch from e9a7f04 to 51d68c1 Compare October 20, 2026 18:45
Comment thread ext/gd/gd.c Outdated
RETURN_FALSE;
}

if (!gdImageTrueColor(im)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as I was about to say in your other PR, your fix is only about the palette case; the report mentioned that libwebp would still report gd-bwep encoding failed and returns true.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry.. I will fix it.

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