Description Usage Arguments Details
Types are "raster","url","path","array3","matrix","long". See details
1 2 3 |
img |
object to convert |
to |
type of output, defaults to raster |
from |
type of input, guessed by default |
path |
for to = "path" |
raster is a two dimensional raster object, the format of the output of most tweak functions.
url is the url to fetch, png, tif, jpg, webp and svg are supported. Converting to url means uploading to imgur as PNG. To upload you'll need an account, follow instructions when trying for the first time. You can convert url to url, it's not a real copy though as it will convert to png.
path is the path to fetch, converting to path means saving. By default you save to a temp file. You can convert path to path
array3 is a numeric three dimensional raster object, that we get when importing the files
matrix is a character two dimensional matrix containing rgba colors in hex
long is a numeric matrix with 4 columns (rgba) and a DIM attribute
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.