Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -165,7 +165,14 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
|
||||
*
|
||||
* @param int|null $max_w Image width.
|
||||
* @param int|null $max_h Image height.
|
||||
* @param bool|array $crop
|
||||
* @param bool|array $crop {
|
||||
* Optional. Image cropping behavior. If false, the image will be scaled (default).
|
||||
* If true, image will be cropped to the specified dimensions using center positions.
|
||||
* If an array, the image will be cropped using the array to specify the crop location:
|
||||
*
|
||||
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
|
||||
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
|
||||
* }
|
||||
* @return true|WP_Error
|
||||
*/
|
||||
public function resize( $max_w, $max_h, $crop = false ) {
|
||||
@@ -190,7 +197,14 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
|
||||
/**
|
||||
* @param int $max_w
|
||||
* @param int $max_h
|
||||
* @param bool|array $crop
|
||||
* @param bool|array $crop {
|
||||
* Optional. Image cropping behavior. If false, the image will be scaled (default).
|
||||
* If true, image will be cropped to the specified dimensions using center positions.
|
||||
* If an array, the image will be cropped using the array to specify the crop location:
|
||||
*
|
||||
* @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
|
||||
* @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
|
||||
* }
|
||||
* @return resource|GdImage|WP_Error
|
||||
*/
|
||||
protected function _resize( $max_w, $max_h, $crop = false ) {
|
||||
|
||||
Reference in New Issue
Block a user