• Resolved Marty

    (@bozzmedia)


    When using images generated directly from macOS screenshots, the auto generated filename has spaces in it. I am not sure why they are all not stripped out by WordPress core, but they are creating issues with open graph featured images rendering on share links.

    When I run the URL through the debugger.

    Corrupted Image
    Provided og:image URL, https://redacted.com/wp-content/uploads/2022/09/Screenshot-2022-09-19-at-12.09.42?PM.jpg could not be processed as an image. It may be corrupted or may have an invalid format.

    When I review the source code:

    <meta property="og:image" content="https://redacted.com/wp-content/uploads/2022/09/Screenshot-2024-09-19-at-12.09.42?PM.jpg"/>

    The actual URL when properly rendered in the browser:
    https://redacted.com/wp-content/uploads/2022/09/Screenshot-2022-09-19-at-12.09.42%E2%80%AFPM.jpg

    When I run the latter URL through the FB debugger itself, it processes and renders properly. So it’s possible the URL rendering on the plugin meta tags could be at least part of the problem.

    Would appreciate any thoughts or suggestions. Thanks!

    • This topic was modified 2 months, 1 week ago by Marty.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Muhammad Usama

    (@usamaazad99)

    Hi @bozzmedia ,

    Thank you for your detailed explanation. I hope you are doing well.

    I am glad to assist you today. Could you please check and confirm if the image you want to use in the OG tag exists in your media library? We’ve tried to replicate the scenario in our environment, and it seems to be working fine. This information will help us better understand the situation and assist you more effectively.

    I appreciate your help, and I look forward to your response!

    Thanks & regards,
    WP Experts Support Team

    Thread Starter Marty

    (@bozzmedia)

    Thank you for the response. Yes, the file is there. It seems to have to do with spaces and escaping/sanitizing the spaces then how it is output in the meta tags.

    Plugin Support Muhammad Usama

    (@usamaazad99)

    Hi @bozzmedia ,

    I hope you are doing well.

    I want to inform you that in WordPress, URLs for media files are automatically escaped and sanitized by WordPress. This helps prevent security vulnerabilities, so it seems like this is a site-specific issue.

    if you need further assistance regarding this issue, please open a ticket on our official website so we can easily connect you with our technical team.

    Hope to hear from you soon.

    Thanks & regards,
    WP Experts Support Team

    Plugin Support Muhammad Usama

    (@usamaazad99)

    Hello @bozzmedia ,

    We are marking this ticket as resolved due to inactivity. If you encounter any further issues, please feel free to open a new ticket.

    Have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.