wppaste
WordPress

apply_filters( 'image_save_progressive', bool $interlace, string $mime_type )

Since
6.5.0
Filters whether to output progressive images (if available).

Compatibility

WordPress
since 6.5.0
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3).

Parameters

$interlacebool
Whether to use progressive images for output if available. Default false.
$mime_typestring
The mime type being saved.

Where this hook fires · 2

  • wp-includes/class-wp-image-editor-gd.php:539WP_Image_Editor_GD::_save()
  • wp-includes/class-wp-image-editor-imagick.php:1142WP_Image_Editor_Imagick::_save()

Source code

			 *			 * @since 6.5.0			 *			 * @param bool   $interlace Whether to use progressive images for output if available. Default false.			 * @param string $mime_type The mime type being saved.			 */			imageinterlace( $image, apply_filters( 'image_save_progressive', false, $mime_type ) );		} 		if ( 'image/gif' === $mime_type ) {			if ( ! $this->make_image( $filename, 'imagegif', array( $image, $filename ) ) ) {				return new WP_Error( 'image_save_error', __( 'Image Editor Save Failed' ) );			}

Changelog

Introduced in 6.5.0. Unchanged from 6.7.10 through 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.