Skip to contents

Extracts color palette from an image file by reading and processing the raster data. Filters out transparent pixels and common background colors.

Usage

getImageRaster(fp)

Arguments

fp

Path to image file

Value

data.table with columns: col (hex color), N (pixel count)

Examples

if (FALSE) { # \dontrun{
colors <- getImageRaster("path/to/artwork.png")
head(colors)
} # }