Skip to contents

Resize and pad a PNG image

Usage

resize_and_pad_image(
  input_path,
  output_path,
  target_width = 318,
  target_height = 200,
  i18n = character()
)

Arguments

input_path

Path of the input image

output_path

Path of the output image

target_width

Width of the output image

target_height

Height of the output image

Value

Returns a PNG image with new dimensions

Examples

resize_and_pad_image("my_image.png", "my_image_resized.png", target_width = 318, target_height = 200)
#> Error in resize_and_pad_image("my_image.png", "my_image_resized.png",     target_width = 318, target_height = 200): could not find function "resize_and_pad_image"