Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Image
Image.Dims

Method Image.Dims.get()


Method get

array(int) Image.Dims.get(string|Stdio.File file)

Description

Read dimensions from a JPEG, GIF or PNG file and return an array with width and height, or if the file isn't a valid image, 0. The argument file should be either a path to a file or a file object. The offset pointer will be assumed to be at the start of the file and will be modified by the function.