This hook has been deprecated. Use image_editor_save_pre instead.

apply_filters( 'image_save_pre', resource $image, int $attachment_id )

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


Parameters

$image

(resource) Image resource to be streamed.

$attachment_id

(int) The attachment post ID.


Source

File: wp-admin/includes/image-edit.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.5.0 Use image_editor_save_pre instead.
WP-2.9.0 Introduced. This hook has been deprecated. Use image_editor_save_pre instead.