[−][src]Function gdl::resize::resize_socialmedia
pub fn resize_socialmedia(img: &PhotonImage, format: &str) -> PhotonImage
Resize an image for a particular format on social media. Available formats include: pinterest, fb_ad, fb_post, instagram_post, twitter_header, linkedin_banner
Arguments
img
- A mutable ref to a PhotonImage.type
- Social media format. The available types are shown above.
Example
resize_socialmedia(&mut img, "linkedin_banner");