makeThumbs: Make thumbnails of images

View source: R/imageHelpers.R

makeThumbsR Documentation

Make thumbnails of images

Description

Makes HTML code to be used in a quarto document that will produce a thumbnail of images that can then be clicked on to view as a lightbox. Names of files with images may be given in imgs (and must be in path) or if imgs is NULL then all files in path will be used to make the carousel.

Usage

makeThumbs(id, path, ncol = 6, imgs = NULL, caps = NULL, rev = FALSE)

Arguments

id

Name for the thumbnail gallery.

path

A relative path to the folder with the images. If imgs is NULL then the folder should only contain image files that will form the carousel.

ncol

A numeric that indicates the number of columns to be used for the thumbnails. Defaults to 6. Use a bigger number to make smaller thumbnails.

imgs

A vector of file names with the images to form the thumbnails. See details.

caps

A vector of captions for each image in the thumbnails. If NULL then captions will be the filename sans extension.

rev

A logical for whether the given order of imgs and caps should be reversed. Most logically used if imgs and caps are not specified.

Details

NONE YET

Value

None, used for side effect of writing HTML code that produces thumbnails of images.

Author(s)

Derek H. Ogle

Examples

## None yet.


droglenc/gpxhelpers documentation built on Dec. 12, 2024, 1:33 a.m.