powered by
Resize an image with padding
resizePad(img, size = 256)
returns resized jpeg image
the image, read by jpeg library
new size
if (FALSE) { crop <- resizePad(cropped_image_path,256) }
Run the code above in your browser using DataLab