image_save_progressive
image_save_progressive
Appears in: gutenberg.19.2.0, gutenberg.19.4.0, gutenberg.19.6.1, gutenberg.19.6.4, gutenberg.19.8.0, gutenberg.19.9.0, gutenberg.20.0.0, gutenberg.20.3.0, gutenberg.20.4.0, gutenberg.20.5.0, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2
Hook Type: filter
Displaying hooks found in version: wordpress-6.7.2apply_filters('image_save_progressive') is found 2 times:
- /wp-includes/class-wp-image-editor-gd.php line 509505506507508509510511512513514515
*
* @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'
) );
}
- /wp-includes/class-wp-image-editor-imagick.php line 841837838839840841842843844845846
) {
$orig_interlace
=
$this
->image->getInterlaceScheme();
/** This filter is documented in wp-includes/class-wp-image-editor-gd.php */
if
( apply_filters(
'image_save_progressive'
, false,
$mime_type
) ) {
$this
->image->setInterlaceScheme( Imagick::INTERLACE_PLANE );
// True - line interlace output.
}
else
{
$this
->image->setInterlaceScheme( Imagick::INTERLACE_NO );
// False - no interlace output.
}
}