im_save {materialmodifier} | 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 |
The image is saved in this directory. For example, path = getwd() |
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:
# face.png is saved to a path (if a path is specified)
im_save( face, path = "yourpath" )
# img.png is saved to a path (if a path is specified)
im_save( face, name = "img", path = "yourpath" )
# myimage.jpg is saved to a path (if a path is specified)
im_save( face, name = "myimage", path = "yourpath", format = "jpg" )
## End(Not run)
[Package materialmodifier version 1.2.0 Index]