
Prepare images for paper JS react app
prep_image.Rd
Prepare images for paper JS react app
Arguments
- input
An object of class
magick-image
or a path to an image in png or jpeg format- height
Height of image sent to react app
Examples
library(semla)
library(magick)
im <- system.file("extdata/mousebrain", "spatial/tissue_lowres_image.jpg", package = "semla")
# Prep image
im_prepped <- prep_image(im)