tanderson11
Forum Replies Created
-
Hi there I just wanted to follow up about this: I think I’m correct that twitter card images should not exceed 1280px for reliable display on twitter. (For example, take any New Yorker article and you will see that twitter meta information links to a 1280px x 720px image. This mirrors my experience that images larger than this won’t always appear in the card.)
The SEO Framework [suggests a width of 1200](https://github.com/sybrew/the-seo-framework/blob/f2b9df85614aee8a37adbb1eb4b6ece5d38df185/lib/js/media.js#L104). This is great! Unfortunately then this width is only used to define the final aspect ratio, because the ultimate dimensions are [scaled back up](https://github.com/sybrew/the-seo-framework/blob/f2b9df85614aee8a37adbb1eb4b6ece5d38df185/lib/js/media.js#L413C19-L413C19) to have the highest resolution supported by the initial image.
It would be great to have an option that disables this behavior for some croppers where we want to crop to an exact target resolution rather than a target aspect ratio. (Which we do want to do for twitter meta images and social media images in general).
I can create a git issue for the subject, but in the meantime it would also be great to know how to properly “compile” the plugin after I make these changes. Presumably I need to execute some script that minifies the js. After I make changes to a fork, what’s the right way to make sure these changes will be reflected in the minified files / the plugin behavior? Sorry for the naive question — I’m new to plugin development.
Thanks for the response! The issue is not that cropping is occurring — this isn’t being done because the images are over 4K but because the images are not in the right aspect ratio. This is a feature I want! When I upload a featured image that is (for example) 1:1, I like that I can select a region that is 1.91:1 (twitter card ratio) for social media.
But in my experience twitter does *not* support images that are up to 4K. We have been plagued by issues with unreliable twitter cards for months: the image will not display if the width is greater than 1200px. We would like to use TSF (or a different SEO framework) to also scale images down until the width is accepted by twitter. If others have found that twitter truly supports larger images, then I would love feedback about what we might be doing wrong.
Thanks!