Main function.
Examples
kevin <- spotify(
path = system.file(package = "spotify", "Kevin.jpg")
)
print(kevin)
#> # A tibble: 1 × 7
#> format width height colorspace matte filesize density
#> <chr> <int> <int> <chr> <lgl> <int> <chr>
#> 1 WEBP 1140 1140 sRGB FALSE 69414 72x72
kevin <- spotify(
path = system.file(package = "spotify", "Kevin.jpg"),
return.type = "flatten",
extras = list(
image_flatten = list(operator = "Threshold")
)
)
print(kevin)
#> # A tibble: 1 × 7
#> format width height colorspace matte filesize density
#> <chr> <int> <int> <chr> <lgl> <int> <chr>
#> 1 WEBP 1140 1140 sRGB FALSE 0 72x72