Learn R Programming

moodef (version 1.2.0)

adapt_image: Resize and Center an Image

Description

Resizes an image to fit within the specified dimensions, centering it on a blank canvas.

Usage

adapt_image(image_file, width = 800, height = 600)

Value

A string representing the path to the new resized image file.

Arguments

image_file

character Path to the image file to be resized.

width

integer, default 800 Desired width of the output image.

height

integer, default 600 Desired height of the output image.