wp_getimagesize
wp_getimagesize ( $filename, $image_info = null )
Parameters:- (string) filename The file path.
- (array) image_info Optional. Extended image information (passed by reference).
Returns:- (array|false) Array of image information or false on failure.
Defined at:Change Log: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Allows PHP's getimagesize() to be debuggable when necessary.