add_image: Add an image to a deck

Description Usage Arguments Value

View source: R/add_card.R

Description

Add an image to a deck

Usage

1
2
add_image(img_path, name = basename(img_path), deck_path,
  max_pixels = 3e+05)

Arguments

img_path

The path to the source image, either local or remote

name

The name to save the image as. If the name already exists, a counter is added to the end. Spaces and capitals will be replaced.

deck_path

The path to the deck directory

max_pixels

The maximum number of pixels an image can be. Larger images will be shrunk to this size and saved as a jpeg.

Value

The path to where the image was saved


zachary-foster/flashcards documentation built on April 23, 2020, 7:26 a.m.