WordPress at a glance
filter is not described

attachment_max_dims filter-hook . WP 1.0

Do we need to constrain the image?

Usage

add_filter( 'attachment_max_dims', 'filter_function_name_4984' );
function filter_function_name_4984( $max_dims ){
	// filter...

	return $max_dims;
}
$max_dims
-

Where the hook is called

get_attachment_icon()
wp-includes/deprecated.php 1924
if ( ($max_dims = apply_filters('attachment_max_dims', $max_dims)) && file_exists($src_file) ) {

Where the hook is used (in WP core)

Does not used.