knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The contrast("./input.png", 5, FALSE, "./output.png")
function adjusts the contrast of an image.
Given a desired level of adjustment intensity, this function works by making dark pixels much darker, and light pixels only slighly darker.
TRUE
, defaults to FALSE
.contrast(input_img="../img/image.png", intensity=5, display=FALSE, output_img="../img/contrast_image.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.