Method Image.Dims.get()
- Method
get
array(int|string)|zeroget(string|Stdio.BlockFilefile,bool|voidexif)- Description
Read dimensions from a JPEG, GIF, PNG, WebP, 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.- Returns
Array int0Image width.
int1Image height.
string2Image type. Any of
"gif","png","tiff","jpeg","webp"and"psd".