Function twitter_card::create_image

source ·
pub fn create_image(content: &str) -> String
Expand description

Create a Twitter image tag.

URL of image to use in the card. Images must be less than 5MB in size. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported.

Used with summary, summary_large_image, player cards.