Produces a mosaic image where elongated organisms (chains) are shown in single rows with fewer images, while compact organisms use a tighter grid.
Usage
create_mosaic(
image_paths,
n_images = 32L,
max_width_px = 1800L,
target_height = 120L,
max_height_px = 1500L
)Arguments
- image_paths
Character vector of PNG file paths.
- n_images
Maximum number of images to include. Default 32.
- max_width_px
Maximum mosaic width in pixels. Default 1800 (fits A4 page at 300 dpi with margins).
- target_height
Base target height in pixels. Default 120.
- max_height_px
Maximum mosaic height in pixels. Default 1500 (approximately half an A4 page at 300 dpi). Images are dropped to stay within this limit.