image_canvas_ghcard: Make your own github card

View source: R/oxy-canvas.R

image_canvas_ghcardR Documentation

Make your own github card

Description

Produces canvas for assembling github social media card of standard size

Usage

image_canvas_ghcard(
  fill_color = "white",
  width = 1280,
  height = 640,
  border = "80x80"
)

image_border_ghcard(image, border_color = "white", border = "80x80")

Arguments

fill_color

background color of the card. Default: 'white'

width

card width (including border). Default: 1280

height

card height (including border). Default: 640

border

border size (will be deducted from the canvas). Default: '80x80'

image

completed gihub card to be complemented by border

border_color

color of the border. Preferrably same as ‘fill_color'. Default: ’white'

Details

The card excludes borders to make sure you never have anything trimmed. Border can be added with 'image_border_ghcard()', which is just a thin wrapper over 'magick::image_border()'

Value

github card of specified dimensions

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

dmi3kno/bunny documentation built on Dec. 7, 2022, 7:22 p.m.