R/process_jpg.R
process_jpg.Rd
import, resize and rotate a JPEG that should have been produced in square mode
process_jpg(fn, w = 32, h = 32, angle = 0)
path to JPEG file
output width in pixels
output width in pixels
in degrees, magnitude of rotation for EBImage::rotate
appl = system.file("jpegs", "oneBigApple.jpg", package="littleDeep")
im = process_jpg(appl, angle=90)
plot(grDevices::as.raster(im))