wp_get_avif_info
wp_get_avif_info ( $filename )
Parameters:- (string) filename Path to an AVIF file.
Returns:- (array) { An array of AVIF image information. @type int|false $width Image width on success, false on failure. @type int|false $height Image height on success, false on failure. @type int|false $bit_depth Image bit depth on success, false on failure. @type int|false $num_channels Image number of channels on success, false on failure. }
Defined at: - Introduced in WordPress: 6.5.0
- Deprecated in WordPress: —
Description
Extracts meta information about an AVIF file: width, height, bit depth, and number of channels.