Open myedgy opened 1 year ago
Hey @myedgy you need to have a server that supports the formats. If the option is greyed out, it is likely your server doesn't support the format. I'm not sure which hosts support AVIF, you will need to run on PHP 8.1 to get AVIF support.
You can also check which formats your server supports under Tools->Site Health->Info(tab)->Media Handling.
Hello I have an dedicated server in full control. What should i need to install except php 8.1 (php 8.1 in already installed, but not elemontor is not compatible yet.) I will test it on a new wordpress install.
I have a avif convert libary installed to but that didn't worked.
So I installed a fresh wordpress on Php 8.1.13 on Debian 11 And it's still grayed out.
Reading
package lists... Done
Building dependency tree... Done
Reading state information... Done
libavif-dev is already the newest version (0.8.4-2+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
At Media Handeling GD supported file formats | GIF, JPEG, PNG, WebP, BMP, AVIF
In the list of ImageMagick supported file formats its not listed.
Although you have probably already resolved this issue, here is some additional information:
To enable AVIF, GD extension must be compiled with AVIF support. Additionally, it depends on libavif
package, but that you already have installed. Please refer to the following article: AVIF image support in PHP 8.1
Nope it's not solved yet. I did that step, will try it again.
@myedgy I suggest checking under Tools->Site Health->Info->Media to verify the supported formats for your server.
Oh - I see you say GD supports AVIF, that should make the option available. Are you on the latest version of core? some bugs were fixed that could break support if only one engine supports a format.
@adamsilverstein Thank you for this plugin.
AVIF option is still greyed out yet GD supported file formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM exists under Tools > Site Health > Info. Running PHP version 8.1 and latest WP version.
@koech-v - can you try activating this Gist as an mu plugin to see if that fixes the grayed out issue?
https://gist.github.com/adamsilverstein/c8b5d0145aeda7fe0a04e4573f2c7c32
Actually, I was able to reproduce this on a test server - it looks like _wp_image_editor_choose
still isn't returning the correct editor. I updated the plugin in 1.2.0 to fall back to GD even when core returns no editor for the mime type. I'll try to look into this further in core; in the meantime can you please give 1.2.0 a test?
https://core.trac.wordpress.org/ticket/59760 will fix the issue for AVIF detection in GD.
JPEGXL detection isn't possible yet for this plugin since we rely on server side PHP support and JPEGXL isn't supported yet in PHP as far as I can tell.
I updated the plugin and AVIF option is no longer greyed out and have set it as such, but image output is still as it was. I hope the ticket you just shared to WordPress Core will fix it in a future WordPress update.
Hello,
First of all thanks for this plugin. Do I need to install something special on my dedicated server, before I can select Avif from the dropdown menu?
Currently, its greyed out.