GC_Image_Editor::resize()

最后更新于:2021-11-27 23:36:35

GC_Image_Editor::resize( int|null$max_w, int|null$max_h, bool$crop=false)

Resizes current image.

参数

$max_w

(int|null) (Required) Image width.

$max_h

(int|null) (Required) Image height.

$crop

(bool) (Optional)

Default value: false

响应

(true|GC_Error)

源文件

文件: gc-includes/class-gc-image-editor.php

	abstract public function resize( $max_w, $max_h, $crop = false );