knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
greyscale(input_path, output_path)
converts a color image into greyscale.
Input:
input_path
: string, path for the input png fileoutput_path
: string, path for the output png fileOutput: an image file at the specified output path
Example: greyscale("./img.png", "./img_gs.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.