im_save: Save an image to disk

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Save an image to disk

Usage

1
im_save(im, name, path, format = "png", quality = 0.95)

Arguments

im

An image.

name

Name of the image file.

path

Path to file.

format

Image format. Either "jpg", "png", "tiff", or "bmp". Default is "png".

quality

(jpg only) default is 0.95. Higher quality means less compression.

Value

No return value, called for side effects.

Examples

1
2
3
4
5
6
7
## Not run: 
# regatta.png is saved to the current working directory
imsave( regatta, path = getwd() )
# myimage.jpg is saved to a specified directory
imsave( regatta, name = "myimage", path = "path/to/image", format = "jpg" )

## End(Not run)

tsuda16k/noesis documentation built on Nov. 25, 2020, 10:16 a.m.