Function to pad and resize an image to 300x300, this function currently assumes that the image is longer than it wide and pads the x axes so that it is as long as wide. Subsequently, the image is resized.
1 | pad_and_resize_img(image_path, size_x = 300, size_y = 300, new_path = NULL)
|
new_path |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.