• Resolved JapeNZ

    (@japenz)


    Hi there,

    I’m seeling the following error:

    WebP/AVIF image request failed, make sure the site can connect to itself

    Any idea what I’m doing wrong?

    I’m also seeing this warning:

    Your webhosting does not support AVIF conversion, contact your server administrator. You need ImageMagick with AVIF support installed.

    Any chance you might add GD: AVIF image support in the future?

    Thanks for your help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author richarddegoffau

    (@richarddegoffau)

    Hi @japenz,

    >>Any idea what I’m doing wrong?
    This message doesn’t always mean something is wrong, but means that a test request from the site to itself (loopback) doen’t work. In that case, this warning is shown. This can be caused by many reasons (firewall, wrong siteurl, running within docker etc).

    >>Any chance you might add GD: AVIF image support in the future?
    Yes, in fact we have already tried AVIF with GD, but on most platforms: AVIF conversion with GDlib doesn’t really seem to work – despite GDlib seems to offer support, and the imageavif method exists. So we’ve not added AVIF conversion with GDlib to our plugin yet. But we will likely do that in the future.

    Thread Starter JapeNZ

    (@japenz)

    Hi @richarddegoffau,

    Thanks for getting back to me ??

    This message doesn’t always mean something is wrong

    Any thoughts on how I can work out what might be causing it on my site, so I can confirm it’s not an issue?
    Also if it’s not a problem, would it be possible to add an option to dismiss the warning?

    Yes, in fact we have already tried AVIF with GD

    Awesome!
    I asked my host to update ImageMagick and was told I’d need to upgrade my hosting… doh!
    However I’m running PHP 8.1 which has GD: AVIF image support.

    Thanks for your help!

    I have the similar error message

    But it is working fine.

    Thread Starter JapeNZ

    (@japenz)

    Hi @tlozano,
    Thanks for the info, much appreciated!

    I’m waiting for GD: AVIF image support, then I’ll be all over it ??

    Are the images noticeable smaller / faster loading than Webp?

    Thanks again!

    Plugin Author richarddegoffau

    (@richarddegoffau)

    >>I have the similar error message
    I found an error in the loopback test to itself. This should be fixed now in the latest version.

    >>I’m waiting for GD: AVIF image support, then I’ll be all over it
    I agree this would be nice – I’ll test again with GD+AVIF to see if I can use it in this plugin.
    (but the last time I tried I ran into this bug: PHP :: Bug #81217 :: imageavif() fails – Segmentation Fault or No codec available)

    Thread Starter JapeNZ

    (@japenz)

    Hi @richarddegoffau,

    Thanks for taking another crack at GD, did you last test it before late 2022?

    Hopefully the update in the bug link you sent means it will now work:

    But since Alpine 3.15 and later, it seems we can use them without problems, that is:

    apk add libavif-dev aom-dev dav1d-dev

    @japenz Yes, the images are smaller than original jpg. I remember one big in my home’s page

    Jpg are 98kB, webp are 74kb and avif are 70kb, but avif has better quality.

    ??

    I can confirm that with last version (2.04) it works fine without warnings messages.

    Thank you

    Plugin Author richarddegoffau

    (@richarddegoffau)

    Hi @japenz ,

    I added support for GDlib/AVIF to the plugin, but this will still not work in some distributions by default (I tested Debian 11) without recompiling gdlib manually. GDlib seems to support avif (the imageavif function exists) but generates always a file of 0 bytes. However on Alpine and maybe other distributions it should work.

    Can you let me know if AVIF works for you now?

    Thread Starter JapeNZ

    (@japenz)

    Hi @richarddegoffau,

    Thanks so much for taking the time to add GD: AVIF image support!

    Unfortunately it hasn’t worked for me, so I guess I’ll be using Webp for the time being… which is fine of course.

    Very much appreciate the effort ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WebP/AVIF image request failed’ is closed to new replies.