powered by
Get information about a PNG file
get_png_info(src)
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
PNG filename or raw vector containing PNG data
# 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)
Run the code above in your browser using DataLab