Last data update: 2014.03.03

R: Save image
save.imageR Documentation

Save image

Description

You'll need ImageMagick for formats other than PNG and JPEG. If the image is actually a video, you'll need ffmpeg.

Usage

save.image(im, file)

Arguments

im

an image (of class cimg)

file

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

Value

nothing

Examples

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

Results