Learn R Programming

animl (version 1.1.0)

resizePad: Resize an image with padding

Description

Resize an image with padding

Usage

resizePad(img, size = 256)

Value

returns resized jpeg image

Arguments

img

the image, read by jpeg library

size

new size

Examples

Run this code
if (FALSE) {
crop <- resizePad(cropped_image_path,256)
}

Run the code above in your browser using DataLab