import, resize and rotate a JPEG that should have been produced in square mode

process_jpg(fn, w = 32, h = 32, angle = 0)

Arguments

fn

path to JPEG file

w

output width in pixels

h

output width in pixels

angle

in degrees, magnitude of rotation for EBImage::rotate

Examples

appl = system.file("jpegs", "oneBigApple.jpg", package="littleDeep")
im = process_jpg(appl, angle=90)
plot(grDevices::as.raster(im))