View source: R/extract-png-info.R
get_png_info | R Documentation |
Get information about a PNG file
get_png_info(src)
src |
PNG filename or raw vector containing PNG data |
Name list of information about the PNG image:
Dimensions of PNG
Bit depth. 8 or 16 bits
color type and its description
Compression setting
Filter method and description
Interlace method and description
# Create a small grayscale PNG image and fetch its PNG info
mat <- matrix(c(0L, 255L), 3, 4)
png_data <- write_png(mat)
get_png_info(png_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.