WordPress at a glance
filter is not described

image_save_pre filter-hook . WP 2.9.0

Deprecated in 3.5.0. It is no longer supported and can be removed in future releases. Use image_editor_save_pre instead.

Deprecated: 3.5.0 Use image_editor_save_pre instead.

Filters the GD image resource to be streamed to the browser.

Usage

add_filter( 'image_save_pre', 'filter_function_name_8245', 10, 2 );
function filter_function_name_8245( $image, $attachment_id ){
	// filter...

	return $image;
}
$image(resource)
Image resource to be streamed.
$attachment_id(int)
The attachment post ID.

Where the hook is called

wp_stream_image()
wp_save_image_file()
wp-admin/includes/image-edit.php 269
$image = apply_filters( 'image_save_pre', $image, $attachment_id );
wp-admin/includes/image-edit.php 326
$image = apply_filters( 'image_save_pre', $image, $post_id );

Where the hook is used (in WP core)

Does not used.