Skip to contents

A convenience function for getting recommended dimensions for images on social media sites.

Usage

social_media_size(platform = c("twitter", "instagram"), type = "default")

Arguments

platform

currently only "twitter"

type

which type of image

Value

named vector of width and height in pixels

Details

Twitter:

link: Image from a Tweet with shared link one: Tweet sharing a single image (default) two: Tweet sharing two images three_left: Tweet sharing three images, Left image three_tight Tweet sharing three images, Right images four: Tweet sharing four images

Instagram:

feed_large: (default) feed_small: stories_large: stories_small:

Examples

social_media_size("twitter", "link")
#>  width height 
#>   1200    628 
social_media_size("twitter", "one")
#>  width height 
#>   1200    675 
social_media_size("twitter", "two")
#>  width height 
#>    700    800