Summery Summery
Crops Image.
Syntax Syntax
Parameters Parameters
- $src_x
-
(Required) The start x position to crop from.
- $src_y
-
(Required) The start y position to crop from.
- $src_w
-
(Required) The width to crop.
- $src_h
-
(Required) The height to crop.
- $dst_w
-
(Optional) The destination width.
Default value: null
- $dst_h
-
(Optional) The destination height.
Default value: null
- $src_abs
-
(Optional) If the source crop points are absolute.
Default value: false
Return Return
(bool|WP_Error)
Source Source
File: wp-includes/class-wp-image-editor.php
abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false );
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |