WordPress at a glance
filter is not described

wp_calculate_image_srcset_meta filter-hook . WP 4.5.0

Let plugins pre-filter the image meta to be able to fix inconsistencies in the stored data.

Usage

add_filter( 'wp_calculate_image_srcset_meta', 'filter_function_name_4191', 10, 4 );
function filter_function_name_4191( $image_meta, $size_array, $image_src, $attachment_id ){
	// filter...

	return $image_meta;
}
$image_meta(array)
The image meta data as returned by 'wp_get_attachment_metadata()'.
$size_array(array)
Array of width and height values in pixels (in that order).
$image_src(string)
The 'src' of the image.
$attachment_id(int)
The image attachment ID or 0 if not supplied.

Where the hook is called

wp_calculate_image_srcset()
wp_calculate_image_srcset_meta
wp-includes/media.php 1055
$image_meta = apply_filters( 'wp_calculate_image_srcset_meta', $image_meta, $size_array, $image_src, $attachment_id );

Where the hook is used (in WP core)

Does not used.