webCOMAND

#IMAGE Crop

Crop an existing image down to a rectangle within the image.

Prototype

#IMAGE($image_bytes, Crop, $x, $y, $width, $height)

Parameters

  • x - Horizontal offset in pixels from the left edge to crop from.
  • y - Vertical offset in pixels from the top edge to crop from.
  • width - Horizontal offset in pixels from x to crop to.
  • height - Vertical offset in pixels from y to crop to.

Example


#NEW($img)#IMAGE($img,Crop,10,10,100,100)#ENDNEW