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:
  • 5: .
  • 6: .
  • 6: .

Description

Returns the real mime type of an image file.This depends on exif_imagetype() or getimagesize() to determine real mime types.

Related Functions

wp_getimagesize, wp_get_image_editor, wp_save_image_file, _wp_get_image_size_from_meta, wp_is_heic_image_mime_type

Top Google Results

User discussions

wpseek mobile