aerni / statamic-advanced-seo

Comprehensive SEO addon for Statamic with flexibility in mind
https://statamic.com/addons/aerni/advanced-seo
10 stars 5 forks source link

1200px x 628px not large enough for OG image to be shown as "large image" #97

Closed tobimori closed 11 months ago

tobimori commented 11 months ago

CleanShot 2023-08-23 at 19 53 30@2x This is the current information in the Advanced SEO UI. However, when uploading a image with 1200px x 628px, it will be shown in small in many clients.

Discord example CleanShot 2023-08-23 at 19 54 04@2x

Telegram example CleanShot 2023-08-23 at 19 54 23@2x

I think the threshold is actually 1200x630px.

aerni commented 11 months ago

I don't have any control over the display size of different platforms. The 1200x628px (or maybe 1200x630px by now) is what Facebook uses. You can change the size in the config to whatever you want.

tobimori commented 11 months ago

It seems stupid to have a default value if it's not recognized by most of the platforms. Twitter also expects a 2:1 ratio image, not 1200x628 something.

Facebook also says it should be at least 1200x630 - please change the default: https://developers.facebook.com/docs/sharing/webmasters/images/

aerni commented 11 months ago

All this value does is resize your uploaded image. Even if your images weren't resized by this addon, your original image would still be resized differently on different platforms.

Twitter is an exception, as it doesn't use Open Graph but its own meta tags. So we can target that specifically. Open Graph is developed by Facebook, which is why this addon uses Facebook's size as the default.

Feel free to PR the change of the default value. In the meantime, you can just change the value in the config.