Spaces in filenames leads to unloaded image / invalid error.
-
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!
- You must be logged in to reply to this topic.