-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
display libavif version and codecs via phpinfo() #7526
base: master
Are you sure you want to change the base?
Conversation
@morsssss probably it could be cleaned-up a bit but works for me |
If we do that, we should do it for the other libs (libjpeg etc.) as well. And wrt. avif, the available codecs would be of interest. |
Good idea, gonna work on it |
18391b4
to
a1f0b98
Compare
I checked libjpeg-turbo and libwebp installed on Ubuntu 21.10 (beta) and I can't find API to get version Probably each library needs to define versions via pkgconf
|
a1f0b98
to
8a5db91
Compare
version string only available with bundled GD |
8a5db91
to
d3402bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On further consideration, I don't think this is the right approach. Instead libgd could provide the version information, and then we could use their API. I suggest to file a feature request or submit a pull request there.
@cmb69 thank you! filed libgd/libgd#782 |
I would be very +1 on getting this is in while a GD lib solution is found - it's rather simple and I cannot see a negative side effect - while the GD lib way will take much longer to get in PHP. In Drupal we are trying to get AVIF support (https://www.drupal.org/project/drupal/issues/3202016), but there's currently no way to introspect AVIF support and report if anything is missing in the configuration - gdinfo() and the relative imageavif() functions are there, can be tested against, but still calling imageavif() without a coder leads to an error. That's a rather fragile status. With this we could check if codecs are missing and report to site admins. |
Well, this patch is only for bundled libgd (and I don't think this is usually used, except on Windows), so a solution in libgd would be needed for other builds. |
Sounds like there's good progress in 8.4 85e5635 |
one more bit is fixed 0079932 |
I find it helpful for debug to see which
libavif
version is linked