Method Image.Dims.get()
- Method get
array(int) get(string|Stdio.Filefile,bool|voidexif)- Description
Read dimensions from a JPEG, GIF, PNG, TIFF or PSD file and return an array with width and height, or if the file isn't a valid image,
0. The argumentfileshould be file object or the data from a file. The offset pointer will be assumed to be at the start of the file data and will be modified by the function.As a compatibility measure, if the
fileis a path to an image file, it will be loaded and processed once the processing of the path as data has failed.- Returns
Array int0Image width.
int1Image height.
string2Image type. Any of
"gif","png","tiff","jpeg"and"psd".