A new image with the modified width and height will be created

redusize(input_file, output_file, width, height)

Arguments

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

Value

an array of image

Examples

input_path <- system.file("tmp_image", "mandrill.jpg", package = "rimager") OpenImageR::imageShow(redusize(input_path, "reduced.jpg", 297, 200))