Problem with avif pix and facebook

#810596
  • Resolved Little Pellizza
    Rank Math free

    DEar
    i have a problem with avif file and facebook. if i use a cover for my article a pix in avif mode and post on facebook, rank mathe seo publish logo of my site. If i use a jpg pix for cover , it’s showerd correctly on facebook

    i checked rank math seo preview of facebook on wordpress option and seems all ok also for avif pix but when i open a post on facebook and copy the link of article something goes wrong

    please fix

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Please note that the image you’re using should be as close as 1200 x 630 pixels, and the image file format you are using is only between jpeg, gif, or png as per Opengraph Standards.

    Here’s a link for more information:
    https://rankmath.com/kb/open-graph-image-not-displaying/#num-4-2-image-dimensions-image-format

    Looking forward to helping you.

    i understand 😐 so ‘ill use only jpg
    but avif is so usefull

    Hello,

    AVIF image format is relatively new and can give higher quality and lower file size compared to other formats like jpg or png. However, there are browser compatibility and other support issues that one has to grapple with.

    It is best to stick with the open graph standards and avoid any issues with image display.

    If you have any questions or need more help, please let us know.

    Thank you for choosing Rank Math!

    I have the same problem, WordPress Performance Team plugin like “Modern Image Formats” now auto generate avif file. It also leave original jpg file.

    I think Rank Math should have a option for auto picking original jpg file, or show original file for picking. Or manual input url.

    As my research facebook already support avif.

    https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Faomediacodec.github.io%2Fav1-avif%2FtestFiles%2FLink-U%2Fkimono.avif

    Rank Math doesn’t show the og:image tag when picked image.

    Hope will solve this problem

    You can fix it by yourself, it just very simple line of code. Go to plugin folder>includes>opengraph>class-image.php

    In line 627 add, avif to the supported extension.

    
    $extensions = [ 'jpeg', 'jpg', 'gif', 'png', 'webp' ];
    

    to this

    
    $extensions = [ 'jpeg', 'jpg', 'gif', 'png', 'webp', 'avif' ];
    

    It should work, and waiting for Rank Math update their plugin.

    Hello,


    @lamkieu1
    , thank you for the input.

    Please note you will lose any editing done to the plugin when there is an update.

    We are discussing this internally to get all the technical info correct and the best approach to possibly include this in the future. You can keep an eye on our changelog for updated information: https://rankmath.com/changelog/

    Hope this helps.

    Thank you.

    Hello,

    We got word from our developers.

    Since FB supports AVIF images, We will be including the support for AVIF images in our next update.

    Thank you for the heads-up.

    Cheers!

    Hello,

    We released a quick Beta update you can try to see if that helps.

    Please enable the Beta update by following this:
    https://rankmath.com/kb/version-control/#beta-updates

    beta update

    If you are unable to see an update, please clear Rank Math’s transients from:
    WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    remove transients rank math

    Please clear the caches, server, and WordPress after updating.

    You can disable the Beta updates once you update to the latest version and if the issue is fixed.

    We are here to assist. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)

The ticket ‘Problem with avif pix and facebook’ is closed to new replies.