Filter hook 'image_make_intermediate_size'

in WP Core File wp-includes/class-wp-image-editor-imagick.php at line 862

Description

Array on success or WP_Error if the file failed to save. }

Occurrences

Filename Line Number
wp-includes/class-wp-image-editor-imagick.php 862
wp-includes/class-wp-image-editor-gd.php 566

Parameters

Type Name Description
Imagick $image
string $filename
string $mime_type

PHP Doc

/**
	 * @since 3.5.0
	 * @since 6.0.0 The `$filesize` value was added to the returned array.
	 *
	 * @param Imagick $image
	 * @param string  $filename
	 * @param string  $mime_type
	 * @return array|WP_Error {
	 *     Array on success or WP_Error if the file failed to save.
	 *
	 *     @type string $path      Path to the image file.
	 *     @type string $file      Name of the image file.
	 *     @type int    $width     Image width.
	 *     @type int    $height    Image height.
	 *     @type string $mime-type The mime type of the image.
	 *     @type int    $filesize  File size of the image.
	 * }
	 */