resize: Resize Media

Description Usage Arguments Value Examples

Description

Resize media (.png, .avi, etc.).

Usage

1
2
resize(path, width = 320, height = size_ratio(width, path = path),
  out = file.path(dirname(path), paste0("resized_", basename(path))))

Arguments

path

Path to the in .mp4 file.

out

Path to the out .mp4 file.

width

The width of the device.

height

The height of the device.

Value

Returns resized media (.png, .avi, etc.).

Examples

1
2
3
4
5
## Not run: 
file <- system.file("extdata/deb_roy.png", package = "embodied")
resize(file, out = "test.png")

## End(Not run)

trinker/embodied documentation built on May 31, 2019, 8:42 p.m.