New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn users on older versions of Gd, that it looses the alpha channel #238
Comments
The following code demonstrates that old versions of Gd looses the alpha channel when saving WebP, but is able to retain it when saving PNG:
On newer Gd, both the PNG and the WebP are semitransparent. On older Gd, the WebP is completely black. It seems that It would seem that all hope is lost for retaining alpha channel for webp on old Gd. |
Here is a link to knowledge on the PNG format. http://www.libpng.org/pub/png/book/chapter08.html |
Gd 2.2.5 has no such problems. I do not know about the versions between 2.1.1-dev and 2.2.5. Please contribute! |
Also reported on 2.1.1. |
For those that experiences this, here are your options:
|
To be more specific, this GD's problem occur on prior PHP 7.0. It means PHP 5.6 or older. |
Old versions of Gd does not handle transparency (in some PNGs)
Experienced in GD Version: 2.1.1-dev.
Also discussed here: rosell-dk/webp-express#374
The text was updated successfully, but these errors were encountered: