image_canvas_ghcard | R Documentation |
Produces canvas for assembling github social media card of standard size
image_canvas_ghcard( fill_color = "white", width = 1280, height = 640, border = "80x80" ) image_border_ghcard(image, border_color = "white", border = "80x80")
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' |
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()'
github card of specified dimensions
## Not run: if(interactive()){ #EXAMPLE1 } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.