Crops Image.
public crop ( integer $src_x, integer $src_y, integer $src_w, integer $src_h, integer $dst_w = null, integer $dst_h = null, boolean $src_abs = false ) : boolean | WP_Error | ||
$src_x | integer | The start x position to crop from. |
$src_y | integer | The start y position to crop from. |
$src_w | integer | The width to crop. |
$src_h | integer | The height to crop. |
$dst_w | integer | Optional. The destination width. |
$dst_h | integer | Optional. The destination height. |
$src_abs | boolean | Optional. If the source crop points are absolute. |
return | boolean | WP_Error |