_crop_image_resource


_crop_image_resource ( $img, $x, $y, $w, $h )

Parameters:
  • (resource) $img Image resource.
  • (float) $x Source point x-coordinate.
  • (float) $y Source point y-cooredinate.
  • (float) $w Source width.
  • (float) $h Source height.
Returns:
  • (resource) (maybe) cropped image resource.
Defined at:

Description

Crops an image resource. Internal use only.

Related Functions

_rotate_image_resource, _flip_image_resource, _copy_image_file, wp_crop_image, _wp_image_editor_choose

Top Google Results

User discussions

wpseek mobile