wp_get_image_mime
wp_get_image_mime ( $file )
Parameters:- (string) file Full path to the file.
Returns:- (string|false) The actual mime type or false if the type cannot be determined.
Defined at:Change Log: - Introduced in WordPress: 4.7.1
- Deprecated in WordPress: —
Description
Returns the real mime type of an image file.This depends on exif_imagetype() or getimagesize() to determine real mime types.