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

Description

Allows PHP's getimagesize() to be debuggable when necessary.

Related Functions

wp_get_image_mime, wp_create_image_subsizes, wp_get_image_editor, _wp_get_image_size_from_meta, add_image_size

Top Google Results

User discussions

wpseek mobile