im_save {sketcher} | R Documentation |
Save an image to disk
Description
Save an image to disk
Usage
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
## Not run:
im = sketch(face)
# im.png is saved to the current working directory
im_save( im, name = "im", path = getwd() )
# myimage.jpg is saved to a specified directory
im_save( im, name = "myimage", path = "path/to/image", format = "jpg" )
## End(Not run)
[Package sketcher version 0.1.3 Index]