downsize | R Documentation |
Downsize an image
downsize(im, npixel_width = 200)
im |
An image object of package magick. |
npixel_width |
Number of pixels for the width of the image. |
An image object of package Magick of reduced or equal size.
im0 <- magick::image_read("https://goo.gl/nRQi5n")
print(im <- downsize(im0, 100))
print(downsize(im, 200)) # only downsize
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.