adapt_image: Resize and Center an Image

View source: R/common.R

adapt_imageR Documentation

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)

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.

Value

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


moodef documentation built on April 12, 2025, 1:42 a.m.