_wp_get_image_size_from_meta


_wp_get_image_size_from_meta ( $size_name, $image_meta )

Access:
  • private
Parameters:
  • (string) $size_name Image size. Accepts any valid image size name ('thumbnail', 'medium', etc.).
  • (array) $image_meta The image meta data.
Returns:
  • (array|bool) Array of width and height values in pixels (in that order) or false if the size doesn't exist.
Defined at:

Description

Get the image size as array from its meta data.

Used for responsive images.

Related Functions

wp_get_image_mime, wp_get_image_editor, get_date_from_gmt, get_page_of_comment, wp_read_image_metadata

Top Google Results

User discussions

wpseek mobile