Description Usage Arguments Value
View source: R/colour_filters.R
Saves the given image in the user-specified directory with the user-specified color filter applied and returns the altered image array.
1 2 3 4 5 6 7 | colour_filters(
image,
tone = "grayscale",
strength = 1,
return_file_name = "colour.jpeg",
dest_folder = "transformed_imgs/"
)
|
image |
string: The local file path for image to which filter will be applied |
tone |
string: Colour filter to be applied to the image. Options:'grayscale', 'blue_tone', 'green_tone', 'red_tone', 'negative'. Default: 'grayscale' |
strength |
double: Strength of the colour filter being applied (0-2]. Valid for 'blue_tone', 'green_tone', 'red_tone'. Default: 1 |
return_file_name |
string: File name for the transformed image to be saved |
dest_folder |
string: Destiname folder name for storing transformed images |
array: altered image array returned for the input colour filter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.