wp_get_webp_info


wp_get_webp_info ( $filename )

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

Description

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

Related Functions

get_bloginfo, wp_get_links, wp_get_plugin_error, wp_get_cookie_login, wp_get_mu_plugins

Top Google Results

User discussions

wpseek mobile