Closed jonoalderson closed 1 year ago
😭
It is not funny! I could not update this plugin since May!
@jono-alderson @IreneStr @jdevalk @benvaassen @atimmer Why you ignore broken og:image
feature?
Hey @mahnunchik,
Sorry you're still having problems with this. We've made a bunch of improvements to how our open graph logic works recently, and I'd hoped we'd caught this. It's still on our list to evaluate, and we'll get to it as soon as we can prioritise it :)
Sounds good
I came here to report this problem and ran across this issue while searching. It feels pretty silly to have Yoast give me a recommended image size: 1600x630, suggest a way to leverage custom image sizes in WP, and then completely ignore that image when I upload an image at that size for opengraph ALL WHILE outputting the expected, manually set Twitter image.
/facepalm
I bumped an image up to 1680x672, uploaded it, and now the 1600x630 version is output in the open graph metadata rather than our 'default' opengraph image.
Victory... but only after not following the recommendation.
@jono-alderson any news since May?
@jono-alderson I have updated Yoast to 9.2.1 version. Suddenly in many post of my blog the og:image meta disapears. Why is happening this ? There is a dimension limitation ? There is a file weight limitation ?
Hi @guidodipaolo
You mention that you have updated to 9.2.1, but you did not specify from which version you were upgrading.
Since 9.0 we have changed the way we dynamically retrieve images from the content. This was giving a lot of performance problems.
Related https://github.com/Yoast/wordpress-seo/issues/11345, https://github.com/Yoast/wordpress-seo/issues/11262
@jono-alderson can you revisit this and see if it's still in need of fixing?
I'm still waiting!
I can confirm this is still an issue. Re-tested on 11.6.
Original issue was created on 11 May 2018 https://github.com/Yoast/wordpress-seo/issues/9699
I'm moving to another plugin.
What do you think? Which of these plugins is better?
I'm sorry that this has been affecting you for quite some time, now.
Please understand, however, that we've been considering this to be an edge-case issue (we've not had any other reports of people suffering from this in the wild), so it hasn't been prioritised vs other more pressing bugs/features.
However, given that I can recreate this, and that there's a likelihood that people often try to match the optimal image size, I suspect that this is probably affecting more people out in the wild. I've made some noise about it internally, which should hopefully result in it getting some attention (and hopefully, getting it fixed).
As to switching to one of those other plugins, well, it depends on how much of your organic traffic you'd be happy to lose ;)
Hi @jono-alderson
The problem is in image_get_intermediate_size
function of wordpress core https://github.com/WordPress/WordPress/blob/master/wp-includes/media.php#L770
Image metadata sizes
doesn't contain size if it is exactly as original image.
Ah, good find! That's definitely liable to cause headaches.
I hope you may switch back image selection for og
tag like for twitter
. For twitter it works as expected.
I've created ticket https://core.trac.wordpress.org/ticket/47713#ticket
@jono-alderson original issue 7 years old... we need a work around https://core.trac.wordpress.org/ticket/21714
@jono-alderson it is possible to replace image_get_intermediate_size
by image_downsize
. It has a bit different signature but returns original size.
https://developer.wordpress.org/reference/functions/image_downsize/
@jono-alderson I've fixed wordpress core https://core.trac.wordpress.org/ticket/47713
This issue was fixed in Yoast SEO 20.1. See https://github.com/Yoast/wordpress-seo/pull/19693. Closing.
This is a cleaned up version of https://github.com/Yoast/wordpress-seo/issues/9699 Issue as described by @mahnunchik.
Summary
When using setting a custom image size via
wpseo_opengraph_image_size
, some scenarios result in theog:image
tag not being output.Specifically, we've identified the following scenario:
wpseo_opengraph_image_size
andwpseo_twitter_image_size
used to set the og/twitter image sizes to a value defined viaadd_image_size
(see code snippet below).add_image_size
, the behaviour is normal.add_image_size
, the Facebook open graph image tags are not output (though the Twitter image tags are output correctly).My suspicion is that one of two things are happening:
Image size registration code sample
Walkthrough
Register the custom image size.
Create a post, and use the following featured image (which is 3782 x 2418). This works correctly.
Create a second post, and use the following image (which is 2000 x 1200). The og:image tags are incorrectly omitted.