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