Skip to content
Chris Petersen edited this page Oct 16, 2014 · 2 revisions

png-height returns the height 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
Clone this wiki locally