save.image: Save image

Description Usage Arguments Value See Also Examples

Description

You'll need ImageMagick for formats other than PNG and JPEG.

Usage

1
save.image(im, file, quality = 0.7)

Arguments

im

an image (of class cimg)

file

path to file. The format is determined by the file's name

quality

(JPEG only) default 0.7. Higher quality means less compression.

Value

nothing

See Also

save.video

Examples

1
2
3
4
5
6
#Create temporary file
tmpF <- tempfile(fileext=".png")
#Save boats image
save.image(boats,tmpF)
#Read back and display
load.image(tmpF) %>% plot


Search within the imager package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.