Skip to contents

This function creates an interactive image comparator. See website of the underlying project for examples: https://image-compare-viewer.netlify.app/

Usage

ricv(img1, img2, options = NULL, css = NULL)

Arguments

img1

A path to an image file. This image will be placed to the left (i.e. 'before' image).

img2

A path to an image file. This image will be placed to the right (i.e. 'after' image).

options

A list of image-compare-viewer options. See documentation for all options.

css

A list of 3 optional attributes ('both', 'before' and 'after'), each containing CSS style attributes targeting the label corresponding to the used attribute name.