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:

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_get_image_editor, wp_save_image_file, _wp_get_image_size_from_meta, wp_get_theme, wp_get_themes

Top Google Results

User discussions

wpseek mobile