WP_Image_Editor_Imagick::make_subsize

Advertisement

Summery Summery

Create an image sub-size and return the image meta data value for it.

Syntax Syntax

WP_Image_Editor_Imagick::make_subsize( array $size_data )

Parameters Parameters

$size_data

(array) (Required) Array of size data.

  • 'width'
    (int) The maximum width in pixels.
  • 'height'
    (int) The maximum height in pixels.
  • 'crop'
    (bool) Whether to crop the image to exact dimensions.

Return Return

(array|WP_Error) The image data array for inclusion in the sizes array in the image meta, WP_Error object on error.

Source Source

File: wp-includes/class-wp-image-editor-imagick.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.