Learn R Programming

webmorphR (version 0.1.1)

social_media_size: Social Media Image Sizes

Description

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

Run this code
# NOT RUN {
social_media_size("twitter", "link")
social_media_size("twitter", "one")
social_media_size("twitter", "two")

# }

Run the code above in your browser using DataLab