save.image: 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

1

Arguments

im

an image (of class cimg)

file

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

Value

nothing

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

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

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