Resize photos
1 2 3 | resize_photos(photo_files = list.files(".", pattern =
".*\\.(jpg|jpeg|JPG|JPEG|png|PNG)"), out_dir = tempdir(),
max_width = 340, max_height = 340, quality = 95, quiet = FALSE)
|
photo_files |
character vector. paths of the photo files |
out_dir |
string. output directory of the resized photos |
max_width |
maximum photo width |
max_height |
maximum photo height |
quality |
the 'quality' of the output JPEG image, as a percentage. |
quiet |
logical. disable printing text output to the console |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.