wp_get_webp_info


wp_get_webp_info ( $filename )

Parameters:
  • (string) filename Path to a WebP file.
Returns:
  • (array) $webp_info { An array of WebP image information. @type array $size { @type int|false $width Image width on success, false on failure. @type int|false $height Image height on success, false on failure. @type string|false $type The WebP type: one of 'lossy', 'lossless' or 'animated-alpha'. False on failure. }
Defined at:

Description

Extracts meta information about a webp file: width, height and type.

Related Functions

wp_get_links, get_bloginfo, wp_get_plugin_error, wp_get_cookie_login, wp_get_password_hint

Top Google Results

User discussions

wpseek mobile