View source: R/ch.resize_jpg.r
ch.resize_jpg | R Documentation |
This function resizes images.
ch.resize_jpg(
input_file,
output_file,
width = NULL,
height = NULL,
keepAspectRatio = T
)
input_file |
a string specifying the name of the input file containing the images. |
output_file |
a string specifying the name of the output file that will contain the resized images. |
width |
an integer specifying the new width of the image in pixels. |
height |
an integer specifying the new height of the image in pixels. |
keepAspectRatio |
A boolean specifying whether the orginal aspect ratio should be kept. If TRUE, then specify either the width or the height of the new image - NOT BOTH. DEFAULT = TRUE. |
Nothing.
ch.resize_jpg ("inputImage.jpg", "outputImageFile.jpg", width = 200, keepAspectRatio=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.