png depth - part-cw/lambdanative GitHub Wiki

(png-depth fname)

png-depth returns the color depth (in pixel) of a PNG file.

Parameter Description
fname PNG file to obtain information from

Example

Example 1: Return image information of the panda-icon.png from uSquish.

> (define fname (string-append (system-directory) (system-pathseparator) "panda-icon.png"))
> (png-width fname)
64
> (png-height fname)
64
> (png-depth fname)
8
> (png-stride fname)
4