R/redusize.R
redusize.Rd
A new image with the modified width and height will be created
redusize(input_file, output_file, width, height)
input_file | character, the file path for the input file |
---|---|
output_file | character, the file path for the output file |
width | integer, the width of the reduced image |
height | integer, the height of the reduce image |
an array of image
input_path <- system.file("tmp_image", "mandrill.jpg", package = "rimager") OpenImageR::imageShow(redusize(input_path, "reduced.jpg", 297, 200))