apply_filters( ‘getimagesize_mimes_to_exts’, array $mime_to_ext )

In this article

Filters the list mapping image mime types to their respective extensions.

Parameters

$mime_to_extarray
Array of image mime types and their matching extensions.

Source

$mime_to_ext = apply_filters(
	'getimagesize_mimes_to_exts',
	array(
		'image/jpeg' => 'jpg',
		'image/png'  => 'png',
		'image/gif'  => 'gif',
		'image/bmp'  => 'bmp',
		'image/tiff' => 'tif',
		'image/webp' => 'webp',
		'image/avif' => 'avif',
	)
);

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.