Skip to contents

Creates web-optimized image variants and carousel crops from the high-resolution main artwork image. Gallery images are sized for fast loading while maintaining visual quality.

Usage

create_gallery_images(artist, artwork, fp_image = NULL)

Arguments

artist

Character. Artist UUID identifying the creator.

artwork

Character. Artwork UUID for this piece.

fp_image

Character. Optional local file path to main image. If NULL, retrieves main.png from CDN vault.

Value

Invisible TRUE on success.

Details

This function produces: - Resized main image as variant-1.png (30 - Additional variants from vault uploads (variant-2.png, etc.) - Seven random carousel crops for homepage/gallery carousel display

All generated images are uploaded to the art-data CDN under the gallery prefix for public access.

Carousel crops are randomly sampled from the center 50 (25

Examples

if (FALSE) { # \dontrun{
create_gallery_images(
  artist = "746b8207-72f5-4ab6-8d19-a91d03daec3d",
  artwork = "99a61148-1d3b-4340-8cf6-92ad26046b0f"
)
} # }